Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
1
Task/Currying/Haskell/currying-1.hs
Normal file
1
Task/Currying/Haskell/currying-1.hs
Normal file
|
|
@ -0,0 +1 @@
|
|||
\ ->
|
||||
1
Task/Currying/Haskell/currying-2.hs
Normal file
1
Task/Currying/Haskell/currying-2.hs
Normal file
|
|
@ -0,0 +1 @@
|
|||
\
|
||||
1
Task/Currying/Haskell/currying-3.hs
Normal file
1
Task/Currying/Haskell/currying-3.hs
Normal file
|
|
@ -0,0 +1 @@
|
|||
->
|
||||
1
Task/Currying/Haskell/currying-4.hs
Normal file
1
Task/Currying/Haskell/currying-4.hs
Normal file
|
|
@ -0,0 +1 @@
|
|||
\x y -> x + y
|
||||
1
Task/Currying/Haskell/currying-5.hs
Normal file
1
Task/Currying/Haskell/currying-5.hs
Normal file
|
|
@ -0,0 +1 @@
|
|||
\x -> \y -> x + y
|
||||
13
Task/Currying/Haskell/currying-6.hs
Normal file
13
Task/Currying/Haskell/currying-6.hs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
procedure main(A)
|
||||
add2 := addN(2)
|
||||
write("add2(7) = ",add2(7))
|
||||
write("add2(1) = ",add2(1))
|
||||
end
|
||||
|
||||
procedure addN(n)
|
||||
return makeProc{ repeat { (x := (x@&source)[1], x +:= n) } }
|
||||
end
|
||||
|
||||
procedure makeProc(A)
|
||||
return (@A[1], A[1])
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue