Re:Rust creator Graydon Hoare is now at Apple working on Swift
by macintux on Tuesday January 31, 2017 @06:26PM
(#13536454)
If you look at the Wikipedia article for Greatest Common Divisor, you see this:
That, in effect, is what pattern matching + function heads gives you. You can copy that function directly into ML or Erlang, modulo a couple tiny bits of syntax.
[ Parent
| on HN ]
There are no comments on this comment yet.