>
> I only asked because if they aren't java.util.Lists to begin with, you'd 
> definitely not want to convert into one just to use removeAll.
>

What if, i had two clojure lists, with hash-maps which have the same keys 
and based on a specific key, i wanted to find the items from list-a which 
do not exist in list-b. Would i go with the two functions you suggested or 
is there something else I could use?

Ryan

On Tuesday, March 12, 2013 12:03:47 AM UTC+2, Marko Topolnik wrote:
>
> On Monday, March 11, 2013 10:55:12 PM UTC+1, Ryan wrote:
>
>> Thank you all for your replies.
>>
>> @Marko, well, at first my question was intended to be more generic, but 
>> in reality I am dealing with two java.util.Lists
>>
>
> I only asked because if they aren't java.util.Lists to begin with, you'd 
> definitely not want to convert into one just to use removeAll.
>  
>
>> I probably didn't described very well what I wanted in the first place. 
>> All the objects in those lists contain an "id" property which has a unique 
>> value. I am trying to find out, which objects from the first list, based on 
>> that "id" property, are not included in list b.
>>
>> I assume this rules out the use of clojure.data/diff and I will need my 
>> own function like Marko suggested to make those property comparisons.
>>
>
> Yes, from data/diff's perspective you'd have all distinct objects.
>
>

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


Reply via email to