Remove unused extension method

This commit is contained in:
Luke Hubmayer-Werner 2022-12-05 21:11:44 +10:30
parent 5082e1a234
commit 5c0bf51226
1 changed files with 0 additions and 2 deletions

View File

@ -2,8 +2,6 @@ import scala.io.Source
val numberPattern = raw"((?:(?<!\d)-)?\d+)".r
extension (s: String) def splitHalf: (String, String) = (s.substring(0, s.length()/2), s.substring(s.length()/2))
@main def main() =
val rangePairs: Array[(Range, Range)] = Source.fromFile("input/4").getLines
.map(line => numberPattern.findAllIn(line).map(_.toInt).toArray)