Re: lazy-seq with meta

2013-07-14 Thread Tassilo Horn
Karsten Schmidt writes: > Sinc the prefix map is built iteratively as part of the parsing I was > hoping to attach it as meta data to the returned lazy-seq, since I > can't see any other way of returning this map apart from attaching to > every single triple in the seq (which seems like overkill)

Re: lazy-seq with meta

2013-07-12 Thread Karsten Schmidt
Okay, I just found a negative answer to this on SO: http://stackoverflow.com/questions/1056061/adding-metadata-to-a-lazy-sequence However, to give a bit more context for my concrete use case: I'm building a Turtle (RDF) parser which emits a lazy seq of triples, basically a seq of 3-element vectors

lazy-seq with meta

2013-07-12 Thread Karsten Schmidt
Hello, what is the correct way (assuming there is one) to create a lazy-seq with metadata attached? The below works for short seqs, but causes a stack overflow for large ones, which obviously means the lazy-seq mechanism is altered/broken if wrapped with `with-meta`. So I guess there must be anothe