I need a sub-string matching verb 'ssm' that will return a boolean '1' if
the left argument matches any portion of the right argument.

Examples:

2 3 ssm 1 3 4 2 3 5 6

1

2 3 ssm 1 3 4 2 1 5 6

0

2 40 6 ssm 52 6 34 6 2 4 2 40 6 78 55

1
2 40 6 ssm 52 6 34 6 2 4 2 39 6 78 55
0
   1 1 ssm 1 0 1 0 1 0 1 0 1 1 0 1 0 0 1
1
   1 1 ssm 1 0 1 0 1 0 1 0 0 1 0 1 0 0 1
0
   0 1 0 1 0 ssm 1 0 1 0 1 0 1 0 0 1 0 1 0 0 1
1

What is a simple expression for ssm? explicit? implicit?

Skip Cave
Cave Consulting LLC
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to