You can use x in 13
f=: 13 : 'x*x+y'
f
[ * +
2 f 12
28
2 ([ * +) 12
28
2011/10/27 Marc Simpson <[email protected]>
> 2011/10/27 Björn Helgason <[email protected]>:
> > It does
> >
> > *4*.The arguments to a definition are initialized by =. . The effects for
> a
> > dyadic verb are as follows:
> > f=: 4 : 0
> > x=. (left argument)
> > y=. (right argument)
> > (rest of verb)
> > )
>
> I'm afraid that I don't see how this clarifies that a '13 : n'
> definition is equivalent to '4 : n' when 'x' is referenced and no
> tacit definition can be inferred.
>
> M
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
Björn Helgason, Verkfræðingur
Fornustekkum II
781 Hornafirði,
t-póst: [email protected]
gsm: +3546985532
twitter: @flugfiskur
http://groups.google.com/group/J-Programming
Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
góður kennari getur stigið á tær án þess að glansinn fari af skónum
/|_ .-----------------------------------.
,' .\ / | Með léttri lund verður |
,--' _,' | Dagurinn í dag |
/ / | Enn betri en gærdagurinn |
( -. | `-----------------------------------'
| ) | (\_ _/)
(`-. '--.) (='.'=) ♖♘♗♕♔♙
`. )----' (")_(") ☃☠
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm