Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 0.11 KB | None | 0 0
  1. template `.`[T,U](f: (proc(x:T): U), x: T): U = return f(x)
  2.  
  3. proc a[T](it: T): T = it
  4.  
  5. var b = 5
  6.  
  7. a.b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement