[Jprogramming] Documentation for Explicit Definition
Björn Helgason
gosinn at gmail.com
Thu Oct 27 23:46:08 HKT 2011
You can use x in 13
f=: 13 : 'x*x+y'
f
[ * +
2 f 12
28
2 ([ * +) 12
28
2011/10/27 Marc Simpson <marc at 0branch.com>
> 2011/10/27 Björn Helgason <gosinn at gmail.com>:
> > 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: gosinn at gmail.com
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 |
( -. | `-----------------------------------'
| ) | (\_ _/)
(`-. '--.) (='.'=) ♖♘♗♕♔♙
`. )----' (")_(") ☃☠
More information about the Programming
mailing list