Skip to content

Instantly share code, notes, and snippets.

View tibastral's full-sized avatar

Thibaut Assus tibastral

  • Milesrock
  • Paris, France
View GitHub Profile
export default function y (elmApp) {
var globalReader = function () {
var reader = new FileReader()
reader.onload = (function (event) {
elmApp.ports.imageRead.send(event.target.result)
})
return reader
}()
(function() {
'use strict';
function F2(fun)
{
function wrapper(a) { return function(b) { return fun(a,b); }; }
wrapper.arity = 2;
wrapper.func = fun;
return wrapper;
add2AndProduct1 : List Int -> Int
add2AndProduct1 list =
List.product (List.map (\e -> e + 2) list)
add2AndProduct2 : List Int -> Int
add2AndProduct2 list =
list
|> List.map (\e -> e + 2)
|> List.product