Elegant way to do lazy infinite list with custom step

2016-12-13 Thread bill nom nom
In Haskell, I can get an infinite lazy list that is incremented by two by, starting at 4 [4,6..] which yields the result [4,6,8,10...] the more general form [x,y..] produces [x, x + (y-x), x + 2 * (y-x), x + 3 * (y-x)...] Is there a way to make a macro of this in clojure, or is there something

Re: What does "Map literal must contain an even number of forms" mean?

2016-12-13 Thread bill nom nom
Ok, I get it now. Thanks! On Sunday, December 4, 2016 at 3:03:04 PM UTC-6, bill nom nom wrote: > > ;; This works, > (hash-map :a 1 :b 2 ) > > > ;; Here's another way to create a hash map, this won't work because map > ;; literal must contain even number of forms

What does "Map literal must contain an even number of forms" mean?

2016-12-04 Thread bill nom nom
;; This works, (hash-map :a 1 :b 2 ) ;; Here's another way to create a hash map, this won't work because map ;; literal must contain even number of forms {hash-map :c "Turd" :d "More Turd"} What does "Map literal must contain an even number of forms" mean? -- You received this message becau