Anything would be evaluated to a noun is evaluated at tacit definition.
For defering an impure function, I usually make it a verb, as in
   'dot'plot+/(3%:_1 0 1)*|:([:-:]+0 1 2=?@3:)^:(i.10000)1 1 1%3

> On Nov 2, 2016, at 11:51 PM, 'Bo Jacoby' via Programming 
> <[email protected]> wrote:
> 
> 
> The following J-code produces the Sierpinski triangle.
> f=. 3 : '-:y+0 1 2=?3'
> 'dot'plot+/(3%:_1 0 1)*|:f^:(i.10000)1 1 1%3
> 
> Note however that the tacit code generator (13 :) evaluates the random number 
> generator (?) at compile time rather than at run time.
>    13 : '-:y+0 1 2=?3'
> [: -: 1 0 0 + ]
> I think that is a bug.
> Thank you.
> Bo.
> Game of Chaos
> 
> 
> |  
> |   |  
> Game of Chaos
> Java applet that produces the Sierpinski triangle by shooting dice  |  |
> 
>  |
> 
> 
> ----------------------------------------------------------------------
> 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