2017-10-30 10:22:16 +01:00
|
|
|
parameter (list int);
|
2018-04-05 17:17:27 +02:00
|
|
|
storage (list int);
|
|
|
|
code { CAR; # Get the parameter
|
2017-10-30 10:22:16 +01:00
|
|
|
LAMBDA int int { PUSH int 1; ADD }; # Create a lambda that adds 1
|
2018-04-05 17:17:27 +02:00
|
|
|
MAP; # Map over the list
|
|
|
|
NIL operation; # No internal op
|
|
|
|
PAIR } # Match the calling convetion
|