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