>
> I was thinking ...
>
> 5 { { 1 2 } { 3 4 } } concat member?
>
Sure, that will work, however if you are aiming for performance you may not
want to create the intermediate array before checking membership.
There is a more general "nested search" technique that is deep-member? in
sequences.deep, but it is probably not as efficient as the original [
member? ] with any? version:
IN: scratchpad 5 { { 1 2 } { 3 4 } } deep-member? .
f
IN: scratchpad 3 { { 1 2 } { 3 4 } } deep-member? .
t
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk