Last active
December 30, 2022 15:42
-
-
Save ggVGc/7e39e035278ee1e93bc42e60d8f7ce15 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
data HTree a = | |
Node a (Htree a) (Htree a) | |
| Leaf a Char | |
getValue :: HTree -> a | |
getValue (Node val _ _) = val | |
getValue (Leaf val _) = val |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment