Wonderful.
Next question : Roger, Aren't you going for holidays sometime ?
Thank you very much.
JC
----- Original Message -----
From: "Roger Hui" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Sunday, August 17, 2008 4:39 PM
Subject: Re: [Jprogramming] Beginner question
s=: 'ab',LF,'abc de',LF,'ab de',LF,'de ef',LF
w=: <;._1@(' '&,)&.> <;._2 s
u=: ~. ; w
u ,. <@I."1 |: (<u) e.&> w
----- Original Message -----
From: JC Coez <[EMAIL PROTECTED]>
Date: Sunday, August 17, 2008 7:21
Subject: [Jprogramming] Beginner question
To: Programming forum <[email protected]>
Hello, I am still a beginner...
Suppose a list of character boxes, each box being a set of
sentences (which
can occur in several boxes ) separated by a LF. I want to get a
catalog of
all different sentences and their corresponding occurences in
the list.
As input:
'ab' 'abc de' 'ab de' 'de ef'
As output:
'ab' '0 2'
'abc' '1'
'de' '1 2 3'
'ef' '3'
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm