Advent of Nim 2022

2022-12-11 Thread DestyNova
Just seeing this thread now, but I've been posting my solutions [in this repo](https://github.com/DestyNova/advent_of_code_2022). Most days I've used Nim but there are a few Crystal solutions too, especially in the earlier days before I got too lazy. A few times I used ChatGPT to tr

Subsequence matching

2022-11-13 Thread DestyNova
While doing a simple [Exercism problem](https://exercism.org/tracks/nim/exercises/sublist), I needed to check whether one sequence was a subsequence of another. Having done similar things in Haskell, I was hoping there would be similar functions in `sequtils` to Haskell's `isPrefixOf` / `isInfi