1 2 3 4 5 6 7 8 9 10 11 12
-module(yes_7). -compile(export_all). ?MODULE() -> ok. f(X, Y) -> Ref = make_ref(), receive {Z,_} when X =:= Y, Ref =:= Z -> ok end.