A* search algorithm: Difference between revisions

Content added Content deleted
m (→‎{{header|Raku}}: I must have been too obsessed with getting eqv to work)
Line 2,828: Line 2,828:
}
}


if ([&&] @( $current »==« end)) { # why $current eqv end not working
if $current ~~ end {
my @path = [].push($current);
my @path = [].push($current);
while %cameFrom{$current.Str}:exists {
while %cameFrom{$current.Str}:exists {