sweet! how about some clojure?: (for [[k v] (partition 2 [:a [:b :c] :d [:e :f]])] {[k "foo"] (f "bar" v)})
-
-
Replying to @muxah @fabrizioschiavi
(or at least the other kind of nesting, like [{"" (["", [], {}])}])
1 reply 0 retweets 0 likes -
Replying to @muxah
The result is very interesting (graphically). Can be helpful for you?pic.twitter.com/ycbTbmEPfI
3 replies 0 retweets 0 likes -
Replying to @fabrizioschiavi
[:a [:b :c] :d [:e :f]] got split in half, and `partition` does not get recognized as a single form anymore, tho it is
1 reply 0 retweets 0 likes -
-
Replying to @fabrizioschiavi
(partition 2 [a [b c] d [e f]]) is a function call partition(2, list), where list=[a [b c] d [e f]]
3 replies 0 retweets 0 likes -
Replying to @muxah
do you know the right order of closing parenthesis? 1) 2] 3} ?
4 replies 0 retweets 0 likes -
Replying to @fabrizioschiavi
invalid: remove any opening/closing [[[]], or switch order, e.g. [()] -> [(]), or mismatch [{)]
1 reply 0 retweets 0 likes -
Replying to @muxah
thank you very much for this clear explanation! I hope to find the solution at this enigma…
1 reply 0 retweets 0 likes -
Replying to @fabrizioschiavi
if you need a test text - this one is very good example: https://github.com/clojure/clojure/blob/master/src/clj/clojure/core.clj … wish you to succeed!
1 reply 0 retweets 0 likes
this is a great help! Thank you!!
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.