wisp
 
(Arne Babenhauserheide)
2014-02-09: readme: add example fibonacci instead of a b c

readme: add example fibonacci instead of a b c

diff --git a/README b/README
--- a/README
+++ b/README
@@ -11,13 +11,11 @@ Wisp: Whitespace to Lisp
           . "Hello " who                     "Hello " who)))
 
 
-    defun a : b c                  (defun a (b c) 
-      let                            (let         
-        : d e                          ((d e)     
-          : f             ⇒             ((f)      
-            ' g                          '(g)))   
-        h i                          (h i)        
-        . j                          j))          
+    define : fibonacci n                 (define (fibonacci n)
+        let rek : (i 0) (u 1) (v 1)          (let rek ((i 0) (u 1) (v 1))
+            if : >= i : - n 2          ⇒          (if (>= i (- n 2))
+                . v                                   v
+                rek (+ i 1) v (+ u v)                 (rek (+ i 1) v (+ u v)))))
 
 
 Wisp turns indentation based syntax into Lisp. The conversion is homoiconic[^h], generic[^g], and backwards-compatible[^b]. It is inspired by project readable, but tries to keep itself simple (and stupid: just a preprocessor). More information on the [wisp-website][] and code in the [wisp-repository][].