Oops, I had a typo, i was checking for regexp? instead of slice?
: check-string ( string -- string )
! Make this configurable
! dup string? [ "String required" throw ] unless ;
dup dup string?
swap slice? or [ "String required" throw ] unless ;
> 0 4 "foo bar " <slice> R/ foo/ first-match
but now I get a memory access error: ...
Naveen
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
http://goparallel.sourceforge.net
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk