as Depending[
Int,
sub {
- my ($dependent_val, $constraining_val) = @_;
- return ($dependent_val > $constraining_val) ? 1:undef;
+ my ($dependent_val, $constraining_val) = @_;
+ return ($dependent_val > $constraining_val) ? 1:undef;
},
Int,
];
Int,
sub {
my ($dependent_int, $constraining_arrayref) = @_;
+ ## Yes, this is braindead way to check for uniques in an array
+ ## but this doesn't require additional dependencies.
(grep { $_ == $dependent_int} @$constraining_arrayref) ? 0:1
},
ArrayRef[Int],