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
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 | |
}() |
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() { | |
'use strict'; | |
function F2(fun) | |
{ | |
function wrapper(a) { return function(b) { return fun(a,b); }; } | |
wrapper.arity = 2; | |
wrapper.func = fun; | |
return wrapper; |
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
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 |
OlderNewer