Aug. 16th, 2017

izard: (Default)
I am not getting clojure zip, that is so sad. Here is a trivial function:

REPL> (def atree (list 1 2 3 (list 4 5) (list 6)))
REPL> (rm-from-tree atree 10)
(1 2 3 (4 5) (6))
REPL> (rm-from-tree atree 3)
(1 2 (4 5) (6))
REPL> (rm-from-tree atree 5)
(1 2 3 (4) (6))
So far, so good.
Now:
REPL> (rm-from-tree atree 6)
NullPointerException clojure.core/with-meta--4375 (core.clj:218)

WTF??

Upd: works fine if I replace list with vector.. WTF??!!1111

Profile

izard: (Default)
izard

August 2025

S M T W T F S
     12
3456789
10111213 141516
17181920212223
24252627282930
31      

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 15th, 2025 05:21 pm
Powered by Dreamwidth Studios