Branch: Tag:

2002-05-15

2002-05-15 11:06:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Some fixes of Attay.count().

Rev: lib/modules/Array.pmod:1.70

682:   {    if(zero_type(needle))    { -  mapping res = ([]); +  mapping(mixed:int) res = ([]);    if(mappingp(haystack)) -  haystack = values(haystack); -  foreach(haystack, mixed what) +  haystack = values([mapping]haystack); +  foreach((array)haystack, mixed what)    res[what]++;    return res;    }