ptk/ptkutil.nim
2016-10-21 15:42:48 -05:00

4 lines
93 B
Nim

template first*(a: openarray): auto = a[0]
template last*(a: openarray): auto = a[len(a)-1]