my ($first_alt, @rest_alt) = @{$ss->alternatives};
return $ss->but(next_step => $ss->on_exhaustion_step) unless $first_alt;
return $ss->but(
- current_hypothesis => $first_alt->[0],
+ current_hypothesis => $first_alt->[1],
alternatives => \@rest_alt,
- next_step => $first_alt->[1],
+ next_step => $first_alt->[0]->alternative_step,
is_solution_state => 0,
);
}
next_step => $ns,
($alt_step
? (alternatives => [
- [ $old_ss->current_hypothesis, $alt_step ],
+ [ $self, $old_ss->current_hypothesis ],
@{$old_ss->alternatives}
])
: ()
class_type DictValue => { class => 'DX::Value::Dict' };
-declare AlternativeList => as ArrayRef[Tuple[Hypothesis, Step]];
+declare AlternativeList => as ArrayRef[Tuple[Step, Hypothesis]];
declare DependencyType => where {
foreach my $cand (EXISTENCE_OF, TYPE_OF, INDICES_OF, CONTENTS_OF) {