[Jprogramming] tacit confusion
Björn Helgason
gosinn at gmail.com
Tue Mar 2 00:33:36 HKT 2010
13 : '(y, x) $ ( 52 ? 52 )'
Gives you the same
2010/3/1 Bo Jacoby <bojacoby at yahoo.dk>:
>
> NB. this does not work:
>
> 3((], [) $ (52?52))2
> |syntax error
> | 3((],[)$(52?52))2
>
> NB. naming the constant
> a=.(52?52)
>
> NB. doesn't help:
> 3((],[)$a)2
> |syntax error
> | 3((],[)$a)2
>
> NB. but switch the function and the constant:
>
> 3(a$~(],[))2
> 46 10 32
> 2 12 3
>
> NB. make another switch:
>
> 3(a$~([,~]))2
> 46 10 32
> 2 12 3
>
> NB. and then remove the square brackets:
>
> 3(a$~,~)2
> 46 10 32
> 2 12 3
>
> -Bo
>
> --- Den man 1/3/10 skrev Elmer Fittery <elmer_fwd at antelecom.net>:
>
> Fra: Elmer Fittery <elmer_fwd at antelecom.net>
> Emne: Re: [Jprogramming] tacit confusion
> Til: programming at jsoftware.com
> Dato: mandag 1. marts 2010 15.27
>
>
> dealx =: (4 : '(y, x) $ ( 52 ? 52 )')
>
> Thanks a lot.
>
> I found reference to dealx at jsoftware.com, but it seemed
> to be removed from the language sometime in 2000.
>
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
>
> __________________________________________________
> Bruger du Yahoo!?
> Er du træt af spam? Yahoo!Mail har den bedste spambeskyttelse, der findes
> http://dk.mail.yahoo.com
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
Björn Helgason, Verkfræðingur
Fornustekkum II
781 Hornafirði
Po Box 127,801 Selfoss ,
t-póst: gosinn at gmail.com
gsm: +3546985532
sími: +3544781286
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