Skip to content

Instantly share code, notes, and snippets.

@ggVGc
Last active December 30, 2022 15:42
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 ggVGc/7e39e035278ee1e93bc42e60d8f7ce15 to your computer and use it in GitHub Desktop.
Save ggVGc/7e39e035278ee1e93bc42e60d8f7ce15 to your computer and use it in GitHub Desktop.
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