Skip to content

Commit f7df29d

Browse files
committed
Allow set differences for all visible lists
1 parent 8f9c390 commit f7df29d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

M2/Macaulay2/m2/set.m2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ intersect Set := Set => {} >> o -> identity
110110
intersect(Set, Set) := Set => {} >> o -> (x,y) -> x*y
111111

112112
Set - Set := Set => (x,y) -> applyPairs(x, (i,v) -> if not y#?i then (i,v))
113-
List - Set := List => (x,y) -> select(x, i -> not y#?i)
114-
Set - List := Set => (x,y) -> x - set y
113+
VisibleList - Set := List => (x,y) -> select(x, i -> not y#?i)
114+
Set - VisibleList := Set => (x,y) -> x - set y
115115

116116
--
117117
sum Set := s -> sum toList s

M2/Macaulay2/packages/Macaulay2Doc/functions/set-doc.m2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ document {
105105

106106
document {
107107
Key => {(symbol -, Set, Set),
108-
(symbol -, Set, List),
109-
(symbol -, List, Set)},
108+
(symbol -, Set, VisibleList),
109+
(symbol -, VisibleList, Set)},
110110
Headline => "set difference",
111111
Usage => "x - y",
112112
Inputs => {

0 commit comments

Comments
 (0)