Advertisement
Guest User

Untitled

a guest
Jun 13th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 0.19 KB | None | 0 0
  1. proc trigger(action: proc(a, b: int): int) =
  2.   echo action(1, 2)
  3.  
  4.  
  5. trigger do (a, b: int) -> int:
  6.   a + b
  7.  
  8. trigger proc(a, b: int): int =
  9.   a + b
  10.  
  11. # IDEAL
  12. trigger do (a, b):
  13.   a + b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement