Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {CarPid, X, Y, getinfo} ->
- orddict:update(CarPid,
- fun
- ({_, _, A, B}) ->
- if
- A =:= X and B =:= Y -> CarPid ! {self(), stop};
- true -> CarPid ! {self(), ok}
- end
- end,
- Cars)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement