aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/ffcat.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-03-09 23:54:10 +0000
committerdos-reis <gdr@axiomatics.org>2011-03-09 23:54:10 +0000
commit8c47810df65c610513d4be825bd6ee9a56f97f9f (patch)
tree7117bf9c5177324de1e4a012b635ed667dec817f /src/algebra/ffcat.spad.pamphlet
parentccd024277fb8eab4a8b22ed160f4da1609dd94e9 (diff)
downloadopen-axiom-8c47810df65c610513d4be825bd6ee9a56f97f9f.tar.gz
* algebra/catdef.spad.pamphlet (StepThrough) [nextItem]: Now
return Maybe %. * algebra/ffcat.spad.pamphlet: Propagate change. * algebra/fmod.spad.pamphlet: Likewise. * algebra/fraction.spad.pamphlet: Likewise. * algebra/integer.spad.pamphlet: Likewise. * algebra/pfbr.spad.pamphlet: Likewise. * algebra/polycat.spad.pamphlet: Likewise. * algebra/si.spad.pamphlet: Likewise.
Diffstat (limited to 'src/algebra/ffcat.spad.pamphlet')
-rw-r--r--src/algebra/ffcat.spad.pamphlet7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/algebra/ffcat.spad.pamphlet b/src/algebra/ffcat.spad.pamphlet
index 2d1d6337..78a1c6a3 100644
--- a/src/algebra/ffcat.spad.pamphlet
+++ b/src/algebra/ffcat.spad.pamphlet
@@ -585,9 +585,10 @@ FiniteFieldCategory() : Category ==_
differentiate x == 0
init() == 0
- nextItem(a) ==
- zero?(a:=index(lookup(a)+1)) => "failed"
- a
+ nextItem a ==
+ a := index(lookup(a)+1)
+ zero? a => nothing
+ just a
order(e):OnePointCompletion(PositiveInteger) ==
(order(e)@PI)::OnePointCompletion(PositiveInteger)