R: Fix linter

This commit is contained in:
Paul Hameteman 2025-10-14 22:36:44 +02:00
commit 4e3d9177af

View file

@ -7,14 +7,16 @@ enum class Heading(val symbol: Char) {
WEST('W'),
;
fun turnLeft() = when (this) {
fun turnLeft(): Heading =
when (this) {
EAST -> NORTH
NORTH -> WEST
WEST -> SOUTH
SOUTH -> EAST
}
fun turnRight() = when (this) {
fun turnRight(): Heading =
when (this) {
EAST -> SOUTH
SOUTH -> WEST
WEST -> NORTH