my ($first_alt, @rest_alt) = @{$self->alternatives};
return undef unless $first_alt;
trace 'search.backtrack.forced' => $first_alt->[0];
- return ref($self)->new(
- current_hypothesis => $first_alt->[0],
- next_step => $first_alt->[1],
- alternatives => \@rest_alt,
- propositions => $self->propositions,
- );
+ return $self->but(
+ next_step => DX::Step::Backtrack->new,
+ )->with_one_step;
}
1;