default=. ([: *@#@". [) >@{ ] ; [: ". [
MODE=. 'MODE' default '-t -4 -a -p -s -f'

For one-time initialization I use

   butifundef =: 2 : 'if. 0 > 4!:0 <m do. n else. ".m end.'

and then

MODE =: 'MODE' butifundef '-t -4 -a -p -s -f'

Not quite the same as yours - it works only for global names, and you would want 'butifundeforempty' - but it's something I can keep in my toolbox for general use.

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

Reply via email to