Remove unused extension method
This commit is contained in:
parent
5082e1a234
commit
5c0bf51226
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue