Last active
October 25, 2015 14:15
-
-
Save tonnylitao/b5761f708a21c308eead to your computer and use it in GitHub Desktop.
Why haskell is better than other programming language?
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
numCommonFriends x y = do | |
fx <- friendsOf x --database query, automatically work concurrently | |
fy <- friendsOf y --database query, automatically work concurrently | |
return (length (intersect fx fy)) | |
-- NodeJS, Go, GCD, Java...other languages need extra code for concurrency, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment