Created
March 13, 2017 02:21
-
-
Save rmoehn/f4d602b67f7dc442a54bf0aedb8cbca8 to your computer and use it in GitHub Desktop.
ClojureScript REPL dump
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cljs.user=> (.text (js/jQuery "#title") "bla") | |
ERROR - jQuery is not defined | |
cljs.user=> (rand) | |
0.4304687375015359 | |
cljs.user=> '(meeow) | |
(meeow) | |
cljs.user=> (m3-C1 1) | |
ERROR - cljs.core.m3_C1.call is not a function | |
cljs.user=> m3-C1 | |
-862048943 | |
cljs.user=> (defn fib1 [n]) | |
#'cljs.user/fib1 | |
cljs.user=> (defn fib1 [n]) | |
#'cljs.user/fib1 | |
cljs.user=> (defn fib1 [n] ) | |
#'cljs.user/fib1 | |
cljs.user=> (defn fib1 [n] | |
(case n | |
0 1 | |
1 1 | |
(+ (fib1 (- n 1) (- n 2))))) | |
#'cljs.user/fib1 | |
cljs.user=> (fib1 5) | |
1 | |
cljs.user=> (defn fib1 [n] | |
(case n | |
0 1 | |
1 1 | |
(+ (fib1 (- n 1) (fib1 (- n 2)))))) | |
#'cljs.user/fib1 | |
cljs.user=> (fib1 5) | |
1 | |
cljs.user=> (defn fib1 [n] | |
(case n | |
0 1 | |
1 1 | |
(+ (fib1 (- n 1)) (fib1 (- n 2))))) | |
#'cljs.user/fib1 | |
cljs.user=> (fib1 5) | |
8 | |
cljs.user=> (map fib1 (range 10)) | |
(1 1 2 3 5 8 13 21 34 55) | |
cljs.user=> (map fib1 (range 20)) | |
(1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765) | |
cljs.user=> (map fib1 (range 30)) | |
(1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 832040) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment