package DX::SearchState;
use Types::Standard qw(Maybe);
+use DX::Step::Backtrack;
use DX::Step::InvokeNextPredicate;
use DX::Class;
return undef unless $first_alt;
trace 'search.backtrack.rewind_to' => $first_alt->[1];
return $self->but(
- current_hypothesis => $first_alt->[0],
- alternatives => \@rest_alt,
- next_step => $first_alt->[1],
+ next_step => DX::Step::Backtrack->new,
);
}