On Tue, 17 Mar 2009, Steven Taylor wrote:
> [d=:i. 3 3
> [e=:(_.$~(20, {.@:$@:])) d
> [f=:({.@:]) d
> [g=:(|:@:]) d
> ( g f }  e) d
> g f }  e   NB. ok
> 20 ( g f }  (_.$~([, {.@:$@:]))) d   NB. ok
> 
> NB. substituting g or f will fail
> 
> 20 ( g ({.@:]) }  (_.$~([, {.@:$@:]))) d

looks like an algebraic factorization. :-)

f=: ({.@:]) d and is executed at that point, subsequently f will be a
noun and will not remember it onces was ({.@:]) d.
 

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩038 李白  關山月
    明月出天山  蒼茫雲海間  長風幾萬里  吹度玉門關  漢下白登道  胡窺青海灣
    由來征戰地  不見有人還  戍客望邊色  思歸多苦顏  高樓當此夜  歎息未應閑
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to