1 package DX::Step::Backtrack;
7 #has resolution_space => (is => 'ro', isa => ResolutionSpace, required => 1);
11 trace backtrack => [ statement => [ [ symbol => 'backtrack' ] ] ];
12 foreach my $adj (@{$ss->decisions_taken}) {
13 my ($rspace_was, $ss_was) = @$adj;
14 next unless @{$rspace_was->remaining_resolution_space->members};
15 trace rspace => [ statement => [
16 [ symbol => 'remaining' ],
17 @{$rspace_was->remaining_resolution_space->for_deparse->[1]}
20 next_step => $rspace_was->remaining_resolution_space->next_step
23 return $ss->but(next_step => $ss->on_exhaustion_step);