ptk/ptkutil.nim
2016-10-08 00:37:16 -05:00

4 lines
81 B
Nim

template first*(s: seq): auto = s[0]
template last*(s: seq): auto = s[len(s)-1]