Prelude's functions
A: , , , ,
B:
C: , , , , , ,
D: , , ,
E: , error, ,
F: , , , , foldl1, , foldr1, fromInt, fromInteger,
G:
H:
I: , , isAlpha, isDigit, isLower, isSpace, isUpper,
L: , , , ,
M: , , , , ,
N: , notElem, null
O: , ,
P: pred, putStr,
Q:
R: , , , ,
S: show, , , hsort, span, splitAt, sqrt, subtract, succ, sum
T: tail, take, takeWhile, tan, toLower, toUpper, truncate
U: undefined, unlines, until, unwords
W: words
Z: zip, zipWith
Original functions
, ,
For the time beeing, only functions in bold are available. This script is a freeware. No warranty on it.
Using the JavaScript console of Google Chrome is recommended. Press Shift + Ctrl + J to show the console.
Created by www.mnet.ne.jp/~tnomura or tnomura9.exblog.jp.
usage:
map( function(x) {return (x * x)}, [1, 2, 3, 4, 5]) => [1, 4, 9, 16, 25]
seq(1, 10) => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
concatMap(function(y){return map(function(x){return x*x},y)}, [[1,2],[3,4]]) => [1, 4, 9, 16]