swarm-0.7.0.0: data/scenarios/Testing/836-pathfinding/_836-path-exists/find-entity-solution.sw
def goDir = \f. \r.
match r \d. \_.
if (d == down) {
grab; pure ()
} {
turn d; move; f;
}
end;
def followRoute =
nextDir <- path (inL ()) (inR "flower");
case nextDir pure $ goDir followRoute;
end;
followRoute;