Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1 @@
fs = map (\i _ -> i * i) [1 .. 10]

View file

@ -0,0 +1 @@
fs = [const $ i * i | i <- [1 .. 10]]

View file

@ -0,0 +1 @@
fs = take 10 coFs where coFs = [const $ i * i | i <- [1 ..]]

View file

@ -0,0 +1,8 @@
> :t fs
fs :: [b -> Integer]
> map ($ ()) fs
[1,4,9,16,25,36,49,64,81,100]
> fs !! 9 $ ()
100
> fs !! 8 $ undefined
81