Add langs Cherrycake and Insitux
This commit is contained in:
parent
633b36288a
commit
9817d9b99b
36 changed files with 132 additions and 0 deletions
|
|
@ -0,0 +1,2 @@
|
|||
; apply a named function
|
||||
(map inc [1 2 3 4])
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
; apply a parameterised closure
|
||||
(map (fn x (+ x 1)) [1 2 3 4])
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
; apply a non-parameterised closure
|
||||
(map #(+ % 1) [1 2 3 4])
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
; apply an explicit partial closure
|
||||
(map @(+ 1) [1 2 3 4])
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
; apply an implicit partial closure
|
||||
(map (+ 1) [1 2 3 4])
|
||||
Loading…
Add table
Add a link
Reference in a new issue