Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
testing https://github.com/arcadia-unity/Arcadia/issues/320 with modified vs code extension for arcadia
user=> (require 'clojure.pprint)
nil
user=> (clojure.pprint/pprint
(let [g (fn f [i]
(if (<= i 0)
:leaf
(vec
(repeatedly 3
#(f (dec i))))))]
(g 4)))
[
[[
[:leaf
:leaf
:leaf]
[:leaf
:leaf
:leaf
]
[:leaf
:leaf :leaf]]
[
[
:leaf
:leaf
:leaf] [
:leaf :leaf
:leaf]
[:leaf
:leaf :leaf]]
[
[
:leaf
:leaf
:leaf] [
:leaf :leaf
:leaf
] [:leaf
:leaf
:leaf]]]
[
[
[:leaf
:leaf
:leaf]
[:leaf
:leaf :leaf
]
[:leaf
:leaf
:leaf]]
[
[
:leaf
:leaf
:leaf]
[:leaf
:leaf
:leaf]
[
:leaf
:leaf
:leaf]]
[
[:leaf :leaf
:leaf
]
[
:leaf
:leaf
:leaf]
[
:leaf
:leaf
:leaf]
]]
[
[
[:leaf
:leaf
:leaf
]
[:leaf
:leaf :leaf] [:leaf :leaf :leaf]]
[[:leaf :leaf :leaf] [:leaf :leaf :leaf] [:leaf :leaf :leaf]]
[[:leaf :leaf :leaf] [:leaf :leaf :leaf] [:leaf :leaf :leaf]]]]
nil
user=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment