Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. {CarPid, X, Y, getinfo} ->
  2. orddict:update(CarPid,
  3. fun
  4. ({_, _, A, B}) ->
  5. if
  6. A =:= X and B =:= Y -> CarPid ! {self(), stop};
  7. true -> CarPid ! {self(), ok}
  8. end
  9. end,
  10. Cars)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement