Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Currying/Latitude/currying-1.latitude
Normal file
9
Task/Currying/Latitude/currying-1.latitude
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
addN := {
|
||||
takes '[n].
|
||||
{
|
||||
$1 + n.
|
||||
}.
|
||||
}.
|
||||
|
||||
add3 := addN 3.
|
||||
add3 (4). ;; 7
|
||||
3
Task/Currying/Latitude/currying-2.latitude
Normal file
3
Task/Currying/Latitude/currying-2.latitude
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
;; addN (3) (4). ;; Syntax error!
|
||||
;; (addN (3)) (4). ;; Syntax error!
|
||||
addN (3) call (4). ;; Works as expected.
|
||||
10
Task/Currying/Latitude/currying-3.latitude
Normal file
10
Task/Currying/Latitude/currying-3.latitude
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
addN := {
|
||||
takes '[n].
|
||||
Object clone tap {
|
||||
self do := {
|
||||
$1 + n.
|
||||
}.
|
||||
}.
|
||||
}.
|
||||
|
||||
addN 3 do 4. ;; 7
|
||||
Loading…
Add table
Add a link
Reference in a new issue