let printColorName (color:Color) =
match color with
| Color.Red -> printfn "Red"
| Color.Green -> printfn "Green"
| Color.Blue -> printfn "Blue"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const fizz = "Fizz"; | |
const buzz = "Buzz"; | |
const fizzbuzz = `${fizz}${buzz}`; | |
const Rx = require('rxjs/Rx'); | |
Rx.Observable.range(1,100) | |
.map(n => n % 15 === 0 ? fizzbuzz : (n % 3 === 0 ? fizz : (n % 5 === 0 ? buzz : n))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function(a){ | |
return function () { | |
return 1 + a | |
} | |
} | |
function(a){ | |
return function ooo() { | |
return 1 + a |
On a des langages multi-paradigmes qui font du fonctionnel. En quoi ces langages font du fonctionnel ?
Faire le lien entre la programmation fonctionnel et ce que l'on voit dans le lien entre
Habituellement quand on parle de fonctionnel dans ces langages on parle des opérations sur les listes (map, filter, fold, reduce)
Quand on déclare un élément, on lui déclare un type int, string, float
Achever JVLIVS – sur JVLIVS III : Ad Finem de SCH
Par Romain de Becdelièvre et Fanny Taillandier Critique, Écrivaine
L’album JVLIVS III : Ad Finem vient conclure la tétralogie mafieuse de SCH initiée en 2018, et enterrer le double mafieux du rappeur. Plongée dans cet opus terminal à travers six punchlines, comme six roses déposées sur la tombe d’un avatar vibrant. Le roi est mort, vive le rap.
« J’pourrais écrire un livre sur ma vie » (« Stigmates »)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use an official Scala image as the base image | |
FROM sbtscala/scala-sbt:graalvm-ce-22.3.3-b1-java17_1.10.1_3.4.2 AS builder | |
# Set the working directory inside the container | |
WORKDIR /app | |
# Copy the project files into the container | |
COPY . . | |
# Compile the application and create a distribution package |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use an official Scala image as the base image | |
FROM ubuntu:latest | |
SHELL [ "/bin/bash", "-c"] | |
# Install java | |
RUN apt-get update && apt-get install -y curl zip unzip git-all && apt-get clean | |
RUN curl -s "https://get.sdkman.io" | bash | |
RUN source "$HOME/.sdkman/bin/sdkman-init.sh" \ | |
&& sdk install java 19.0.2-tem \ | |
&& sdk install sbt 1.8.2 \ |
NewerOlder