I'm using these verbs a lot.  Put them in a
utility.ijs file that you tend to run during any
session.  They basically, ease the splitting of lines
when you want to enhance readability, quickly cache a
computation that takes some time, or just want to make
sure the intermediate step produces what you want.

up=: 3 :'UP=:y' NB. temp result cache
initifundef =: (, ('_'&([,],[))@(>@(18!:5)@(0&$)) ) 
'UP' initifundef i.0 [ 'UP2' initifundef i.0 [ 'UP3'
initifundef i.0 NB. saves current values if reloaded.
up3=: 3 :'(UP=:y) [ (UP2=: UP) [ (UP3=: UP2)'

   up3 +/ i.10
45
   up3 +: UP
90
   UP2
45
   up UP2 , UP
45 90
   up UP2 , UP
45 45 90
   
the up3 verb caches the last 3 results and slides them
along to UP, UP1, and UP2.  the up verb caches the
last result only into UP.  I find using these inside
definitions useful too, but I often end up clobbering
over toplevel caches.

--- "Leigh J. Halliwell" <[EMAIL PROTECTED]> wrote:

> Dear J Forum:
>  
> When I run out of space on a line of script, how can
> I tell J that the
> sentence continues on the next line?  Can this work
> also in the execution
> window?  Thanks.
>  
> Sincerely,
>  
> Leigh
>
----------------------------------------------------------------------
> For information about J forums see
> http://www.jsoftware.com/forums.htm
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to