tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
|
|
@ -0,0 +1,14 @@
|
|||
(def 'fs mapcar)
|
||||
(de f1 (N) (* 2 N))
|
||||
(de f2 (N) (* N N))
|
||||
|
||||
(de partial (F1 F2)
|
||||
(curry (F1 F2) @
|
||||
(pass F1 F2) ) )
|
||||
|
||||
(def 'fsf1 (partial fs f1))
|
||||
(def 'fsf2 (partial fs f2))
|
||||
|
||||
(for S '((0 1 2 3) (2 4 6 8))
|
||||
(println (fsf1 S))
|
||||
(println (fsf2 S)) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue