declare AlternativeList => as ArrayRef[Tuple[Hypothesis, Step]];
declare DependencyType => where {
- foreach my $cand (EXISTENCE_OF, INDICES_OF, TYPE_OF, CONTENTS_OF) {
+ foreach my $cand (EXISTENCE_OF, TYPE_OF, INDICES_OF, CONTENTS_OF) {
return 1 if $_ eq $cand;
}
return 0;
use Exporter 'import';
my @const = (
- my @dep_types = qw(EXISTENCE_OF INDICES_OF TYPE_OF CONTENTS_OF),
+ my @dep_types = qw(EXISTENCE_OF TYPE_OF INDICES_OF CONTENTS_OF),
my @ev_types = qw(VALUE_SET VALUE_EXISTS),
);
map {; no strict 'refs'; $_ => \*$_ } @const
});
-# $INDICES_OF = 1, ...
+# $EXISTENCE_OF = 1, ...
do { no strict 'refs'; ${$dep_types[$_-1]} = $_ } for 1..@dep_types;
# VALUE_EXISTS triggers all types, VALUE_SET all but EXISTENCE_OF
-our @VALUE_EXISTS = (EXISTENCE_OF(), INDICES_OF(), TYPE_OF(), CONTENTS_OF());
-our @VALUE_SET = (INDICES_OF(), TYPE_OF(), CONTENTS_OF());
+our @VALUE_EXISTS = (EXISTENCE_OF(), TYPE_OF(), INDICES_OF(), CONTENTS_OF());
+our @VALUE_SET = (TYPE_OF(), INDICES_OF(), CONTENTS_OF());
sub trace {
my ($tag, $thing) = @_;