From fb3be522a0c46d5251a36d654e05243b9f0fc2bb Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Mon, 23 Jan 2023 22:41:13 +0000 Subject: [PATCH] remove more destructuring --- rover.fnl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rover.fnl b/rover.fnl index c0405d7..fccc07d 100644 --- a/rover.fnl +++ b/rover.fnl @@ -13,7 +13,7 @@ (fn lateral? [direction] (. {:w true :e true} direction)) -(fn try-to-drive [{: x : y : direction : stopped} distance] +(fn try-to-drive [{: x : y : direction} distance] (let [distance (if (lateral? direction) (/ distance (math.cos (/ (* math.pi y) 180)))