If all those people hadn't been awake all night you might have enjoyed:

    ]L=:,>(10$(?10 $26){(65+i.26){a.)(;"0)'0'
B0W0R0L0G0J0Y0Q0K0C0
   (, 0 4 10 18{ (i.20),.>:i.20){L
B0R0J0C0

Linda   

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of PackRat
Sent: Tuesday, December 04, 2012 1:18 AM
To: [email protected]
Subject: Re: [Jprogramming] Getting more than one value back from "From" or
alternative approach

Thank you, Ric and especially Bob!

Bob Therriault wrote:
> Is there a reason that you would not be able to add the spaces at the 
> end using iji #  ?
> 
> sqdata=. 'X@@.@..@....@.......@....'
> e=.5 5 $ e3 { sqdata
> 1j1#"1 e

My original version was along your lines (that is, no spaces until the
end) except that I couldn't figure out how to insert alternating spaces in
the final result.  Thus, I had to insert spaces in sqdata to come anywhere
close to a solution (that is, where output looked similar to what I was
looking for).

I'm familiar with iji, but only with respect to displaying decimal data.  I
had never seen your use previously--but that's how this relative newbie
learns J better and better.  (And thanks for noticing that the solution
could involve more possible characters than only '.' 
and '@'.)

Thanks again to both of you!


Harvey

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

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

Reply via email to