!. never seems to work for things I want it too :P

Here is a function to get a custom fill during unboxing.  A cute $. trick.

unboxfill =: ((0 $. (3 ; [) $. $.@:])  >)

  1 unboxfill 3;2 4 
3 1 
2 4 

  > 3;2 4 
3 0 
2 4 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to