rover

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit fb3be522a0c46d5251a36d654e05243b9f0fc2bb
parent 65e298c82cd8fca858dde423450d0008029bfe8b
Author: Daniel Barlow <dan@telent.net>
Date:   Mon, 23 Jan 2023 22:41:13 +0000

remove more destructuring

Diffstat:
Mrover.fnl | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)))