File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ lazy val root = project
2727 .settings(
2828 organization := " com.horothesun" ,
2929 name := " advent-of-code-2024" ,
30- scalaVersion := " 3.7.2 " ,
30+ scalaVersion := " 3.7.3 " ,
3131 libraryDependencies ++= Seq (
3232 " org.typelevel" %% " cats-core" % catsVersion,
3333 " org.typelevel" %% " kittens" % kittensVersion,
Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ object Day02:
4242 case _ :: tail => ls.zip(tail).forall((l, r) => l.differsFrom(min = 1 , max = 3 )(r))
4343
4444 def safety (ls : List [Level ]): Safety =
45- if (( isAllIncreasing(ls) || isAllDecreasing(ls)) && areAllDeltasBetween1And3(ls)) Safe else Unsafe
45+ if (isAllIncreasing(ls) || isAllDecreasing(ls)) && areAllDeltasBetween1And3(ls) then Safe else Unsafe
4646
4747 extension [A ](nel : NonEmptyList [A ])
4848 def removed (elementAt : Int ): List [A ] =
4949 val as = nel.toList
50- if ( elementAt < 0 || nel.length <= elementAt) as
50+ if elementAt < 0 || nel.length <= elementAt then as
5151 else // 0 <= idx && idx < nel.length
5252 as.take(elementAt) ++ as.drop(1 + elementAt)
5353
You can’t perform that action at this time.
0 commit comments