david alis wrote:
> The strings will always start with a leading + .
> Thus, in the example,
> +a:b:c+A:B:C+
> the required result is
> 'b';'B'
 
When designing sequential machines, it's often a good idea to
list output codes against the original sequence.  For example:
 
+a:b:c+A:B:C+
   13    13  

> When the substrings have been elided, such as
> '+++'
> an acceptable result is
> '+';'+'
 
I do not understand what rule you are implying here.
For example, why would the result not be 1, 3 or 0 '+'
signs?

> Or in this case
> '+:+:+'
> an acceptable result is
> ':' ; ':'
These output codes might work here:
 
+:+:+
 1313

> Or in this case
> '+123:+456:+
> an acceptable result is
> ':' ; ':'
 
Likewise:
+123:+456:+
    13   13

> The question is - is it possible for it to behave
> the way I want?
 
I don't know -- I don't understand what you want.

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to