Irrefutable patterns on the RHS (VarParen.lg):
|
Shows how to simulate inherited attributes: expr has type Integer -> (Tree Integer, Integer), it takes the global minimum to the rep-min tree (with all elements replaced by the minimum) and the local minimum (RepMin.lg).
|
!avoid layout-sensitive code!
|