An open API service indexing awesome lists of open source software.

https://github.com/escherize/clj-goto

goto in Clojure
https://github.com/escherize/clj-goto

Last synced: 9 months ago
JSON representation

goto in Clojure

Awesome Lists containing this project

README

          

# clj-goto

It's `goto`, in Clojure :tada:

``` clojure
(def n (atom 0))

(goto/block
[:label :start]
(println "Starting up")
(goto :add)

[:label :add]
(swap! n inc)
(if (>= @n 5) (goto :end) (goto :add))

[:label :end]
(println "all done!"))

@n
;; => 5
```