3 ms·
It is an old concept used in most functional languages, like ML, haskell or even Prolog via unification. So not an invention of scala, only that is also lives
by ysleepy 10y ago
It is an old concept used in most functional languages, like ML, haskell or even Prolog via unification.
So not an invention of scala, only that is also lives on the JVM.
http://wiki.c2.com/?PatternMatching http://wiki.c2.com/?PatternMatching