On 27/02/13 12:52, Marko Topolnik wrote:
In this line:
(map (if even? (fn [num _] (identity spans)) str) some-seq1 some-seq2)
you appear to involve /identity/ in a way that makes no sense since
(identity spans) is just spans. You also don't involve the
/num/ argument at all; but maybe you meant
Ooops!
I do apologize cos in my effort to provide a minimal example I
copy-pasted wrongly! The actual code looks like this:
(let [tok-array (into-array ^String token-seq)]
(map
#((if spans? (fn [span _] span) spans->strings) ;;decide what fn to use
(.find this tok-array) tok-array)
token-seq)
As you can see I am sort of creating my own version of identity (fn
[span _] span) because I cannot use 'identity' with 2 args. This is my
use-case...It should make sense now yes?
Jim
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.