/usr/share/axiom-20170501/src/algebra/MDAGG.spad is in axiom-source 20170501-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | )abbrev category MDAGG MultiDictionary
++ Author: Michael Monagan; revised by Manuel Bronstein and Richard Jenks
++ Date Created: August 87 through August 88
++ Date Last Updated: April 1991
++ Description:
++ A multi-dictionary is a dictionary which may contain duplicates.
++ As for any dictionary, its size is assumed large so that
++ copying (non-destructive) operations are generally to be avoided.
MultiDictionary(S) : Category == SIG where
S : SetCategory
SIG ==> DictionaryOperations S with
insert_! : (S,%,NonNegativeInteger) -> %
++ insert!(x,d,n) destructively inserts n copies of x into dictionary d.
removeDuplicates_! : % -> %
++ removeDuplicates!(d) destructively removes any duplicate values
++ in dictionary d.
duplicates : % -> List Record(entry:S,count:NonNegativeInteger)
++ duplicates(d) returns a list of values which have duplicates in d
|