[Jprogramming] Newbie: Tactit question
Björn Helgason
gosinn at gmail.com
Thu Jan 10 21:32:35 HKT 2008
The length error is obvious if you look at
a=. 1 2 3 4 1
b=.~. 1 2 3 4 1
$a
5
$b
4
2008/1/10, Yoel Jacobsen <yoel.jacobsen at gmail.com>:
>
> Hello,
>
> Why does the following raises a length error:
> ((#~.) ~: #) 1 2 3 4 1
>
> Why isn't it like:
> (# ~. 1 2 3 4 1) ~: (# 1 2 3 4 1)
>
> Goal: to check if there a duplicates in an array..
>
>
> Thanks,
> Yoel
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
Björn Helgason, Verkfræðingur
Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
801 Grímsnes ,t-póst: gosinn at gmail.com
Skype: gosiminn, gsm: +3546985532
Landslags og skrúðgarðagerð, gröfuþjónusta
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