Skip to content

Commit

Permalink
code golf
Browse files Browse the repository at this point in the history
  • Loading branch information
lenguyenthanh committed Oct 31, 2023
1 parent 2a50f43 commit 220d8a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/Square.scala
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,4 @@ object Square:
val all: List[Square] = (0 to 63).toList

val allKeys: Map[String, Square] = all.mapBy(_.key)
val charMap: Map[Char, Square] = all.mapBy(square => square.asChar)
val charMap: Map[Char, Square] = all.mapBy(_.asChar)

0 comments on commit 220d8a5

Please sign in to comment.