|
|
|
|
|
by prollyignored
4745 days ago
|
|
An offtopic clojure question. Today I was seeing this -- https://en.wikipedia.org/wiki/Knuth-Morris-Pratt_algorithm How can I begin to implement it in clojure ? Specifically, how do I _ingeneral_ deal with assignments and while loops. In common-lisp, for example I would use the `loop` macro and defvar-sefq combo, (beginning lisper). In ruby, = and while itself. |
|
http://clojuredocs.org/clojure_core/clojure.core/let
http://clojuredocs.org/clojure_core/1.2.0/clojure.core/loop http://clojuredocs.org/clojure_core/clojure.core/for Or just: Browse the Clojure cheatsheet: http://clojure.org/cheatsheet