-module(prog).
-export([main/0]).
same(X,X) ->
true;
same(_,_) ->
false.
main() ->
io:
format("~p ~p ~p~n", [a
, a
, same(a
, a
)]), io:
format("~p ~p ~p~n", [a
, b
, same(a
, b
)]), io:
format("~p ~p ~p~n", [{1,{2,{3}}}, {1,{2,{3}}}, same({1,{2,{3}}},{1,{2,{3}}})]),
io:
format("~p ~p ~p~n", [{1,{2,{3}}}, {1,{2,{4}}}, same({1,{2,{3}}},{1,{2,{4}}})]),
true.
LW1vZHVsZShwcm9nKS4KLWV4cG9ydChbbWFpbi8wXSkuCgpzYW1lKFgsWCkgLT4KICAgIHRydWU7CnNhbWUoXyxfKSAtPgogICAgZmFsc2UuCgptYWluKCkgLT4KCWlvOmZvcm1hdCgifnAgfnAgfnB+biIsIFthLCBhLCBzYW1lKGEsIGEpXSksCglpbzpmb3JtYXQoIn5wIH5wIH5wfm4iLCBbYSwgYiwgc2FtZShhLCBiKV0pLAoJaW86Zm9ybWF0KCJ+cCB+cCB+cH5uIiwgW3sxLHsyLHszfX19LCB7MSx7Mix7M319fSwKCSAgICAgICAgICAgICAgICAgICAgICAgICBzYW1lKHsxLHsyLHszfX19LHsxLHsyLHszfX19KV0pLAoJaW86Zm9ybWF0KCJ+cCB+cCB+cH5uIiwgW3sxLHsyLHszfX19LCB7MSx7Mix7NH19fSwKCSAgICAgICAgICAgICAgICAgICAgICAgICBzYW1lKHsxLHsyLHszfX19LHsxLHsyLHs0fX19KV0pLAoJdHJ1ZS4=