Skip to content

Instantly share code, notes, and snippets.

View souhe's full-sized avatar

Jakub Kłobus souhe

View GitHub Profile
let isNotBad = review => review !== 'Bad';
isNotBad('Neutral');
type Review = 'Bad' | 'Neutral' | 'Awesome';
let isNotBad = (review: Review) => review !== 'Bad';
isNotBad('Neutral');
type review = Bad | Neutral | Awesome;
let isNotBad = (review) => review !== Bad;
isNotBad(Neutral);
import { add } from './utils/AddModule';
add(1, 2);
AddModule.add(1, 2);
let add = (a, b) => a + b;
export add;
let add = (a, b) => a+b;
Array.map(l => String.lowercase_ascii(l), languages);
languages.map(l => l.toLowerCase());
@souhe
souhe / array.re
Last active October 18, 2018 21:09
/* List */
let languages = ["ReasonML", "JS", "OCaml"];
/* Array */
let languages = [|"ReasonML", "JS", "OCaml"|];