Types
Scanner[T] = ref object raw*: string s*: seq[T] pos*: int
- A scanner is a common construct for reading data
Procs
func find(sc: Scanner[Rune]; r: Rune): int {....raises: [], tags: [].}
- return number of consumed chars. The scanner's position is not moved. -1 is returned when char is not found
proc newScanner[T](s: seq[T]): Scanner[T]