mirror of
https://github.com/carp-lang/Carp.git
synced 2024-11-14 18:47:42 +03:00
Update README.md
This commit is contained in:
parent
d7c2a58ef0
commit
d709b38c7f
@ -38,7 +38,7 @@ The most important thing in Carp is to work with arrays of data. Here's how that
|
||||
```clojure
|
||||
(defn move-enemies (enemies)
|
||||
(map (fn (enemy) (let [moved (move enemy)]
|
||||
(if (< (.x enemy) 0.0f) (restart enemy) enemy)))
|
||||
(if (< (.x moved) 0.0f) (restart moved) moved)))
|
||||
enemies))
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user