[Jprogramming] console display verb
Oleg Kobchenko
olegykj at yahoo.com
Mon Mar 5 03:27:36 HKT 2007
To display nouns in a matrix of character
string here's a couple of verbs
disp=: (];.0~ 1 1,:_2+$)@":@<
displf=: [: , LF ,.~ disp
displf i.2 3 4
0 1 2 3
4 5 6 7
8 9 10 11
12 13 14 15
16 17 18 19
20 21 22 23
$displf i.2 3 4
84
$disp i.2 3 4
7 11
$": i.2 3 4
2 3 11
--- Mike Powell <mikepowell at shaw.ca> wrote:
> Any object and ellipsis, please.
>
> On 4-Mar-07, at 8:26 AM, Roger Hui wrote:
>
> > The monad ": ?
> >
> > But do you mean it should work for any object,
> > verb, adverb, and conjunction as well as nouns?
> > Do you mean that it should do the ... thing
> > (truncating the output which is too long in
> > one or both of the dimensions)?
> >
> >
> >
> > ----- Original Message -----
> > From: Mike Powell <mikepowell at shaw.ca>
> > Date: Sunday, March 4, 2007 8:07 am
> > Subject: [Jprogramming] console display verb
> >
> >> I'm looking for a J verb that will return an array of characters
> >> representing the "usual" output seen in the console for any J
> >> object.
> >> I've been digging through the start-up scripts for way too long.
> >> Time
> >> to ask for help.
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
____________________________________________________________________________________
Don't get soaked. Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather
More information about the Programming
mailing list