@@ -313,6 +313,7 @@ impl fmt::Display for ImplPrimitive {
313
313
MatchPattern => write ! ( f, "pattern match" ) ,
314
314
MatchLe => write ! ( f, "match ≤" ) ,
315
315
MatchGe => write ! ( f, "match ≥" ) ,
316
+ Astar => write ! ( f, "{Path}" ) ,
316
317
AstarFirst => write ! ( f, "{First}{Astar}" ) ,
317
318
AstarTake => write ! ( f, "{Take}…{Astar}" ) ,
318
319
AstarPop => write ! ( f, "{Pop}{Astar}" ) ,
@@ -554,7 +555,6 @@ impl Primitive {
554
555
) ,
555
556
Trace => format ! ( "use subscripted {} instead" , Stack . format( ) ) ,
556
557
Windows => format ! ( "use {} {} instead" , Stencil . format( ) , Identity . format( ) ) ,
557
- Astar => format ! ( "use {} instead" , Path . format( ) ) ,
558
558
Over => format ! ( "use {With} or {Below} instead" ) ,
559
559
_ => return None ,
560
560
} )
@@ -1185,10 +1185,6 @@ impl Primitive {
1185
1185
} ) ?;
1186
1186
}
1187
1187
Primitive :: Dump => dump ( ops, env, false ) ?,
1188
- Primitive :: Astar => {
1189
- let [ neighbors, heuristic, is_goal] = get_ops ( ops, env) ?;
1190
- path:: path ( neighbors, is_goal, Some ( heuristic) , env) ?;
1191
- }
1192
1188
Primitive :: Path => {
1193
1189
let [ neighbors, is_goal] = get_ops ( ops, env) ?;
1194
1190
path:: path ( neighbors, is_goal, None , env) ?;
@@ -1883,6 +1879,10 @@ impl ImplPrimitive {
1883
1879
env. insert_stack ( outputs, kept) ?;
1884
1880
env. push_all ( temp) ;
1885
1881
}
1882
+ ImplPrimitive :: Astar => {
1883
+ let [ neighbors, heuristic, is_goal] = get_ops ( ops, env) ?;
1884
+ path:: path ( neighbors, is_goal, Some ( heuristic) , env) ?;
1885
+ }
1886
1886
ImplPrimitive :: UndoPartition1 => groups:: undo_partition_part1 ( ops, env) ?,
1887
1887
ImplPrimitive :: UndoGroup1 => groups:: undo_group_part1 ( ops, env) ?,
1888
1888
ImplPrimitive :: ReduceContent => reduce:: reduce_content ( ops, env) ?,
0 commit comments