Skip to content

Instantly share code, notes, and snippets.

@AyaMorisawa
AyaMorisawa / project-eular-001.ls
Last active August 29, 2015 14:14
Project Eular 001 LiveScript
global <<< require \prelude-ls
[1 til 1000] |> (filter -> it % 3 == 0 || it % 5 == 0) |> sum |> console.log
/*
$ lsc project-eular-001.ls
233168
*/
U = -> it it
U U
/*
$ lsc infinite-loop.ls
Failed at: infinite-loop.ls
RangeError: Maximum call stack size exceeded
*/