On Sat, Mar 13, 2010 at 11:18 PM, Dan Bron <[email protected]> wrote:
> However, the solution was slightly complicated (and slowed) by the fact that
> # only allows me to specify fills *after* an element.
>
> It would be nice if # were extended such that if the imaginary component of
> a complex argument were negative, then the fills would *precede* the
> corresponding element in the output.

Try using #&.|. to get the fills before the element.

   2 1j2 3j1 1 #!.'-' 'abcd'
aab--ccc-d
   2 1j2 3j1 1 #!.'-'&.|. 'abcd'
aa--b-cccd

Ambrus
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to