This does a linear search of a sequence:
IN: scratchpad 5 { 1 2 3 4 } member? .
f
IN: scratchpad 3 { 1 2 3 4 } member? .
t
You can use "sorted-member?" if the sequence is sorted, or "in?" if it is
set. (There is also member-eq? which does an "eq?" check instead of a "="
check).
On Wed, Jan 9, 2013 at 8:09 PM, Leonard P <leonard14...@gmail.com> wrote:
> Is there a vcontains? ( v n -- ? ) word on vectors?
>
> Sorry for the inundation of questions.
>
>
>
> ------------------------------------------------------------------------------
> 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
>
>
------------------------------------------------------------------------------
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