packages feed

swarm-0.7.0.0: data/scenarios/Testing/836-pathfinding/_836-path-exists/find-location-solution.sw

def goDir = \f. \r.
  match r \d. \_.
  if (d == down) {
    grab; pure ()
  } {
    turn d; move; f;
  }
  end;

def followRoute =
    nextDir <- path (inL ()) (inL (4, 0));
    case nextDir pure $ goDir followRoute;
    end;

followRoute;