See http://www.jsoftware.com/docs/help803/user/lib_strings.htm .

On Tue, Dec 9, 2014 at 9:53 AM, Jon Hough <[email protected]> wrote:

> Given a string, I am looking for a terse / elegant way to trim the
> trailing whitespace, similar toJava / C# .trim() method for strings.This is
> my version:
> WS =: ' ' NB. whitespace
>
> removeTrailing =: ]`}.@.(' ' = {.)^:_&.|.
>
>
> Is there a better way?
>
>
>
>
>
>
>
>
> ----------------------------------------------------------------------
> 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