Created
July 20, 2019 03:57
-
-
Save shriphani/b19c636f9718004e2870cb5a85a6f687 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
longer : String -> String -> Nat | |
longer word1 word2 = let len1 = length word1 | |
len2 = length word2 in | |
if len1 > len2 then len1 else len2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment