Quantcast
Channel: Jason Andrews Blog
Viewing all articles
Browse latest Browse all 33813

searching a list of sublists for matching expression

$
0
0
Is there a simple way to search a set of sublists for matching expressions and return the list of sublists that have the expression? I have been trying the following example and only get the full master list of sublists returned: mylist='(("one" 1) ("two" 2)) myset=setof(list mylist foreach(item setof(obj list stringp(obj)) rexMatchp("one" item))) ==> (("one 1) ("two" 2))

Viewing all articles
Browse latest Browse all 33813

Trending Articles