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
