3 ways to generate Lazy Fibonacci sequences in Clojure
Generating the Fibonacci sequence is a good exercise to illustrate the concept of lazy sequences in Clojure. In this article, we will present 3 ways to create a lazy Fibonacci sequence:
Developer. Author. Speaker.
Generating the Fibonacci sequence is a good exercise to illustrate the concept of lazy sequences in Clojure. In this article, we will present 3 ways to create a lazy Fibonacci sequence:
;; this is a workaround: currently a page with only transpiled snippets dont work (+ 1 2)
In this magic post, we showed how to make a type in clojurescript behave like a function by extending the IFn protocol.
In this precedent post we have presented the skeleton of the javascript transpiled code of defrecord + deftype when they work together.
In Clojure, the language itself is modifiable
ClojureScript can compile itself
Power of expression vs. Performances
Truth and languages
1- Protocols
In a precedent post, we have presented the basics of destructuring in Clojure.