adventofnim
adventofnim copied to clipboard
Regexes? no, learn Npeg!
https://github.com/pietroppeter/adventofnim/blob/fb2f90e491034342608b8fc302f8f0d239ce33c3/2020/day04.nim#L7
Or consider learning NPeg instead!
https://github.com/zevv/aoc2020/blob/master/04/main.nim
(Shameless plug!)
Absolutely my thought after seeing your great solution! ❤️
https://twitter.com/pietroppeter/status/1334807215828574208?s=21
https://github.com/zevv/aoc2020/blob/master/04/main.nim
That should be in the npeg repo as a very "real world" use case example too IMHO.