JanetDocsPlaygroundI'm feeling luckyGitHub sign in
(defn walker `Simple walker function, that prints non-sequential members of the form or prints "Sequence" and walks recursively sequential members of the tree.` [form] (if (or (indexed? form) (dictionary? form)) (do (print "Sequence") (walk walker form)) (print form))) (walk walker [[[[0 1 3]] 16 7 [3 [3 5]] 3 4] 1 [3 4]]) # Prints # Sequence # Sequence # Sequence # 0 # 1 # 3 # 16 # 7 # Sequence # 3 # Sequence # 3 # 5 # 3 # 4 # 1 # Sequence # 3 # 4