diff options
author | dos-reis <gdr@axiomatics.org> | 2013-05-18 06:14:27 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2013-05-18 06:14:27 +0000 |
commit | 979b28507f84eff5c739879f4b15e595eeab00f9 (patch) | |
tree | 4fb4f1ee6472e1ef7290264c83dde41d21031b67 /src/algebra/list.spad.pamphlet | |
parent | a6ba684e87ea28ea0a5ad8746a15d3575eb5c8f9 (diff) | |
download | open-axiom-979b28507f84eff5c739879f4b15e595eeab00f9.tar.gz |
Define members, not parts
Diffstat (limited to 'src/algebra/list.spad.pamphlet')
-rw-r--r-- | src/algebra/list.spad.pamphlet | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/algebra/list.spad.pamphlet b/src/algebra/list.spad.pamphlet index 78cb7133..6ceb30fa 100644 --- a/src/algebra/list.spad.pamphlet +++ b/src/algebra/list.spad.pamphlet @@ -21,7 +21,7 @@ import ListAggregate ++ Basic Operations: ++ \#, append, concat, concat!, cons, construct, copy, elt, elt, ++ empty, empty?, eq?, first, member?, merge!, mergeSort, minIndex, -++ nil, null, parts, removeDuplicates!, rest, rest, reverse, +++ nil, null, removeDuplicates!, rest, rest, reverse, ++ reverse!, setDifference, setIntersection, setUnion, setelt, ++ setfirst!, setrest!, sort!, split! ++ Related Constructors: ListFunctions2, ListFunctions3, ListToMap @@ -110,7 +110,7 @@ List(S:Type): Exports == Implementation where %store(%tail x,y)$Foreign(Builtin) %tail x construct l == l - parts s == s + members s == s reverse! x == %lreverse! x reverse x == %lreverse x minIndex x == %icst1 @@ -474,7 +474,7 @@ AssociationList(Key:SetCategory, Entry:SetCategory): empty() == dictionary() empty? t == empty? deref t entries(t:%):List(Pair) == deref t - parts(t:%):List(Pair) == deref t + members(t:%):List(Pair) == deref t keys t == [k.key for k in deref t] # t == # deref t first(t:%):Pair == first deref t |