Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
|
|
@ -0,0 +1 @@
|
|||
fs = map (\i _ -> i * i) [1 .. 10]
|
||||
|
|
@ -0,0 +1 @@
|
|||
fs = [const $ i * i | i <- [1 .. 10]]
|
||||
|
|
@ -0,0 +1 @@
|
|||
fs = take 10 coFs where coFs = [const $ i * i | i <- [1 ..]]
|
||||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue