Macaulay2 » Documentation
Packages » Macaulay2Doc > The Macaulay2 language > catch
next | previous | forward | backward | up | index | toc

catch -- catch a thrown exception

Synopsis

Description

i1 : catch scan(0..10, i -> if i == 5 then throw 18 else print i)
0
1
2
3
4

o1 = 18

See also

For the programmer

The object catch is a keyword.