#partial #statement #domain #subset #match #test #value

partial_fn

Construct a partial function from a series of match statements

1 unstable release

0.1.0 Oct 31, 2023

#44 in #subset

MIT license

8KB
99 lines

partial_fn

A partial function of type PartialFn<A,B> is a unary function whose domain is a subset of A. In addition to being able to call a PartialFn, a method is_defined_at is provided in order to test whether the given PartialFn is defined at a particular value.

License: MIT


lib.rs:

A partial function of type PartialFn<A,B> is a unary function whose domain is a subset of A. In addition to being able to call a PartialFn, a method is_defined_at is provided in order to test whether the given PartialFn is defined at a particular value.

No runtime deps

Features