Created
October 21, 2013 23:01
-
-
Save surjikal/7092319 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
isType = do -> | |
getType = (x) -> x.constructor.name | |
[[],{}].reduce ((result, x) -> | |
type = getType(x) | |
result[type] = (y) -> getType(y) is type | |
),{} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment