https://kotlinlang.org logo
#advent-of-code
Title
# advent-of-code
n

Nir

12/04/2020, 4:29 PM
They can't really have things like ':' in the string without additional conditional constraints
e

ephemient

12/04/2020, 8:00 PM
I used
.split(":", limit = 2)
Copy code
>>> "a:b:c".split(":", limit = 2)
res0: kotlin.collections.List<kotlin.String> = [a, b:c]
5 Views