Re:G()('al')
by pathikrit on Sunday July 27, 2014 @12:29AM
(#8091987)
Quite trivial in idiomatic Scala:
Non-idiomatic shorter answer:
[ Parent
| on HN ]
This looks great! Can you submit a pull request? These things are coming in really fast and its way easier to take that way.
Re:G()('al')
by stevenheidel on Sunday July 27, 2014 @12:44AM
(#8092022)
Also add
g(s: String) = "gal"
to handle the case of no 'o's.