csh @csh.codes · Dec 3

Day 03 ✅ I knew some regex was coming soon, thankfully not too bad today github.com/csh97/advent... #kotlin #AdventOfCode

5 likes 2 replies

?

Replies

Drew Davis · Dec 4

Some fun stuff in there I’ll have to look into later. ICYDK, you can use `\d` to match a digit rather than use a character set (if you’re targeting the JVM)

Pedr.o · Dec 3

Nice use of the `return@`, I was wondering how to early-return in some cases :) I'm missing though being able to have string slices without reallocating strings, like in #rust