I want to compose and apply a function as follows:

A> (= (<function to extract \a> "abBcdAa">) "aa")

I can filter the argument using filter #(= \a %) <string>.

If I (def s (filter #(= \a %) "abBcdAa")) I get
(\a \a\).

If I (str s) I get
"clojure.lang.LazySeq@fe1"

If I (apply str s) i get
"aa"

But what I am trying to do is A> above.  I've tried various combinations of 
comp and str and partial and filter, but I can't get it right.

Can someone show me how?

P.S. What I'm trying to "achieve" is learning how this stuff works.  I'm 
happy to hear of the 10-character solution, but I do want to know how to 
string the various bits together into a working whole.

Thanks

-- 
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

Reply via email to