On Mon, Mar 1, 2010 at 3:59 PM, Dan Bron <[email protected]> wrote:
>        require 'strings'
>        ' ' cut 'as 1s 9s'    NB. Leading space not required by cover function

...also left arg of cut defaults to (' ').

   cut
' '&$: :([: -.&a: <;._2@,~)
   ] cards  =: cut 'as 1s 2s 3s 4s 5s 6s 7s 8s 9s ts js qs ks'
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
|as|1s|2s|3s|4s|5s|6s|7s|8s|9s|ts|js|qs|ks|
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to