Created
November 2, 2017 16:54
-
-
Save jaforsgren/35e7571114f1adf00c0bfba03448e25e 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
fn findhead obj = | |
( | |
if (isGroupHead obj) | |
then (return obj) | |
else (if (isGroupMember obj) then (findhead (obj.parent)) else (return undefined)) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment