RosettaCodeData/Task/Currying/Eero/currying-2.eero

13 lines
152 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
#import <stdio.h>
int main()
addN := (int n)
return (int x | return x + n)
add2 := addN(2)
printf( "Result = %d\n", add2(7) )
return 0