FunctionSpaceAssertions(R, F)ΒΆ
expr.spad line 963 [edit on github]
R: Comparable
F: FunctionSpace R
Attaching assertions to symbols for pattern matching; Date Created: 21 Mar 1989
- constant: F -> F
constant(x)tells the pattern matcher thatxshould match only the symbol'xand no other quantity. Error: ifxis not a symbol.
- multiple: F -> F
multiple(x)tells the pattern matcher thatxshould preferably match a multi-term quantity in a sum or product. For matching on lists, multiple(x) tells the pattern matcher thatxshould match a list instead of an element of a list. Error: ifxis not a symbol.
- optional: F -> F
optional(x)tells the pattern matcher thatxcan match an identity (0 in a sum, 1 in a product or exponentiation). Error: ifxis not a symbol.