Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
18
Task/Currying/FreeBASIC/currying.freebasic
Normal file
18
Task/Currying/FreeBASIC/currying.freebasic
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
' FB 1.05.0 Win64
|
||||
|
||||
Type CurriedAdd
|
||||
As Integer i
|
||||
Declare Function add(As Integer) As Integer
|
||||
End Type
|
||||
|
||||
Function CurriedAdd.add(j As Integer) As Integer
|
||||
Return i + j
|
||||
End Function
|
||||
|
||||
Function add (i As Integer) as CurriedAdd
|
||||
Return Type<CurriedAdd>(i)
|
||||
End Function
|
||||
|
||||
Print "3 + 4 ="; add(3).add(4)
|
||||
Print "2 + 6 ="; add(2).add(6)
|
||||
Sleep
|
||||
Loading…
Add table
Add a link
Reference in a new issue