dim, 14 Feb 2010, Ian Clark skribis:
> And it seems to work how I want it with other examples in the same vein:
>
> t=: >@((10{a.)&cut) 0 : 0
> Mon[day] Ian
> Tues[day] Avril
> We[dnesday] Barbara
> )
if each line contains tokens that separated by a variable number of
space (for alignment), you may use deb (delete embedded blank) to
squeeze the extra spaces. like
t=: 0 : 0
Mon[day] Ian
Tues[day] Avril
We[dnesday] Barbara
)
<;._1 @ (' '&,) @ deb ;._2 t
+-----------+-------+
|Mon[day] |Ian |
+-----------+-------+
|Tues[day] |Avril |
+-----------+-------+
|We[dnesday]|Barbara|
+-----------+-------+
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm