I learned a lot from this one also.  It was fun to untangle.

]A=:2 1 3$a:
-TT┐
││││
L++-

-TT┐
││││
L++-
   
   ]B=:1 1}._1 _1}.":<A
-TT┐
││││
L++-
    
-TT┐
││││
L++-
   
   dtb~ ([: +./\. ' '&~:)
dtb~ ([: +./\. ' '&~:)
   
   logfmt A
-TT┐
││││
L++-

-TT┐
││││
L++-
   
   $logfmt A
31
   
   f=: 13 :'; ([:([:<,)&(10{a.)dtb)"1]y'
   f
[: ; ([: ([: < ,)&(10{a.) dtb)"1
   
   f B
-TT┐
││││
L++-

-TT┐
││││
L++-
   
   $f B
31
   
   (logfmt A)-:f B
1
   
Linda
   
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Raul Miller
Sent: Saturday, March 15, 2014 10:18 PM
To: Programming forum
Subject: Re: [Jprogramming] what function will format a noun with boxes?

Perhaps you mean something like this:

require 'strings'
logfmt=:3 :0
  ;<@,&LF@dtb"1]1 1}._1 _1}.":<y
)

Example use:
   logfmt 2 1 3$a:

Thanks,

-- 
Raul



On Sat, Mar 15, 2014 at 10:07 PM, Pascal Jasmin
<[email protected]>wrote:

> there is probably a defined j function that will display a noun with its
> boxed formatting as text... say to add it to a text/webview control buffer
> or log file?
>
> I cannot find it though.
> ----------------------------------------------------------------------
> 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

Reply via email to