SpaceLogic
abstract space logic
Value members
Abstract methods
Is the type tp
decomposable? i.e. all values of the type can be covered
by its decomposed types.
Is the type tp
decomposable? i.e. all values of the type can be covered
by its decomposed types.
Abstract sealed class, OrType, Boolean and Java enums can be decomposed.
True if we can assume that the two unapply methods are the same. That is, given the same parameter, they return the same result.
True if we can assume that the two unapply methods are the same. That is, given the same parameter, they return the same result.
We assume that unapply methods are pure, but the same method may be called with different prefixes, thus behaving differently.
Concrete methods
Remove a space if it's a subspace of remaining spaces
Remove a space if it's a subspace of remaining spaces
Note: dedup
will return the same result if the sequence >= 10
Is a
a subspace of b
? Equivalent to a - b == Empty
, but faster
Is a
a subspace of b
? Equivalent to a - b == Empty
, but faster