Published: pattern matching

Dan Stine sw at stinemail.com
Fri Apr 21 23:29:05 UTC 2017


Hello,

Unless I am missing something, just noting a minor typo in the Point example.

case Point(0, var y) -> "on x axis";
case Point(var x, 0) -> "on y axis";

I believe these two cases should be reversed. The x-axis is y=0 and vice versa.

Regards,
Dan





More information about the amber-dev mailing list