Skip to content

Instantly share code, notes, and snippets.

@davisp
Created March 24, 2022 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davisp/9e8e8f2451db88d0759bb0318a65c0a9 to your computer and use it in GitHub Desktop.
Save davisp/9e8e8f2451db88d0759bb0318a65c0a9 to your computer and use it in GitHub Desktop.
visit1(Child, Acc) ->
{SeenAcc, Ignore1, Ignore2} = Acc,
{NewSeenAcc, _, _} = other:call(Child, SeenAcc),
{NewSeenAcc, Ignore1, Ignore2}.
visit2(Child, Acc) ->
{SeenAcc, Ignore1, Ignore2} = Acc,
{NewSeenAcc, _, _} = other:call(Child, SeenAcc),
{SeenAcc, NewSeenAcc, Ignore1, Ignore2}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment