This must be viewed with a nonproportional font.
It attempts to show that deb removes both leading and trailing spaces, but
deb1 now only removes trailing spaces.

   (,:1j0&":@(10&|)@i.@#)deb ' abc  de  g hij k  '
abc de g hij k
01234567890123
    deb1 =: #~ ( 1 ,~ [: -. '  ' -:"1 (}: ,. }.) )
   (,:1j0&":@(10&|)@i.@#)deb1 ' abc  de  g hij k  '
 abc de g hij k
0123456789012345
   deb1 =: #~ ( (' ' ~: {:) ,~ [: -. '  ' -:"1 (}: ,. }.) )
   (,:1j0&":@(10&|)@i.@#)deb1 ' abc  de  g hij k  '
 abc de g hij k
012345678901234



On Mon, Jul 14, 2014 at 10:29 AM, Kip Murray <[email protected]> wrote:

> Correction:
>
> deb1 =: #~ ( (' ' ~: {:) ,~ [: -. '  ' -:"1 (}: ,. }.) )
>
> (Now treats a trailing blank as an extra blank.)
>
> --
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to