Created
March 24, 2022 21:11
-
-
Save davisp/9e8e8f2451db88d0759bb0318a65c0a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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