fork download
  1. type ustring* = distinct string
  2.  
  3. converter toUString*(s: string): ustring = ustring(s)
  4.  
  5. proc `[]`*(s: ustring, i: int): ustring = s
  6.  
  7. echo "abcdefgh"[1..^2]
  8.  
Success #stdin #stdout 0s 4516KB
stdin
Standard input is empty
stdout
bcdefg