We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AdventOfCode2021/src/test/kotlin/Day02.kt
Line 39 in dadc1e8
(Just trying out how to comment on code in github....)
You could use s.split(" ") instead of s.split(" ".toRegex()) (Kotlin has overloaded split for String and Regex argument)
s.split(" ")
s.split(" ".toRegex())
split
String
Regex
The text was updated successfully, but these errors were encountered:
updated using split(" ")
Sorry, something went wrong.
prasad-babu
No branches or pull requests
AdventOfCode2021/src/test/kotlin/Day02.kt
Line 39 in dadc1e8
(Just trying out how to comment on code in github....)
You could use
s.split(" ")
instead ofs.split(" ".toRegex())
(Kotlin has overloadedsplit
forString
andRegex
argument)The text was updated successfully, but these errors were encountered: