Or, if
]A=: ('p';''),:'g';'de'
+-+--+
|p| |
+-+--+
|g|de|
+-+--+
A([EMAIL PROTECTED],&.>],&.>{:@[)"1 0"1 _ B
+------+------+-------+
|pNLB |pLW8 |pFW12 |
+------+------+-------+
|gNLBde|gLW8de|gFW12de|
+------+------+-------+
A([:,&.>/"1 ([EMAIL PROTECTED],.],.{:@[)"1 _) ,.B
+------+------+-------+
|pNLB |pLW8 |pFW12 |
+------+------+-------+
|gNLBde|gLW8de|gFW12de|
+------+------+-------+
R.E. Boss
> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED] [mailto:programming-
> [EMAIL PROTECTED] Namens R.E. Boss
> Verzonden: donderdag 30 augustus 2007 12:21
> Aan: 'Programming forum'
> Onderwerp: RE: [Jprogramming] prefixing and suffixing
>
> A (>@[EMAIL PROTECTED],],>@{:@[)&.>"0 _ B
> +------+------+-------+
> |pNLB |pLW8 |pFW12 |
> +------+------+-------+
> |gNLBde|gLW8de|gFW12de|
> +------+------+-------+
>
> or
>
> B (>@[EMAIL PROTECTED], (,>@{:))&.>"_ 0 A
> +------+------+-------+
> |pNLB |pLW8 |pFW12 |
> +------+------+-------+
> |gNLBde|gLW8de|gFW12de|
> +------+------+-------+
>
> R.E. Boss
>
>
> > -----Oorspronkelijk bericht-----
> > Van: [EMAIL PROTECTED] [mailto:programming-
> > [EMAIL PROTECTED] Namens Sherlock, Ric
> > Verzonden: donderdag 30 augustus 2007 12:11
> > Aan: Programming forum
> > Onderwerp: [Jprogramming] prefixing and suffixing
> >
> > I'm not referring to the primitives prefix and suffix, but to adding a
> > prefix and suffix to string.
> >
> > I came up with the monstrosity that is prefsuf below.
> > I suspect that there are more elegant ways of accomplishing the same
> > thing.
> >
> > ]B=: 'NLB';'LW8';'FW12'
> > +---+---+----+
> > |NLB|LW8|FW12|
> > +---+---+----+
> > ]A=: ('p';'');(<'g';'de')
> > +----+------+
> > |+-++|+-+--+|
> > ||p||||g|de||
> > |+-++|+-+--+|
> > +----+------+
> > NB. Watch line wrapping in email on next line.
> > prefsuf=: [: ; [: ; [: ([: {. [ ,&.> ] ,&.> [: {: [)"1 0&.>/&.> [:
> > <"1 [ ,/"0 [: < ]
> >
> >
> > A prefsuf B
> > +----+----+-----+------+------+-------+
> > |pNLB|pLW8|pFW12|gNLBde|gLW8de|gFW12de|
> > +----+----+-----+------+------+-------+
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm