Open pietervdvn opened 8 years ago
Given type A = {X f:Int, Y}
type A = {X f:Int, Y}
What should the default implementation of setF be?
setF
Either:
f : Int -> A -> A i (X _) = X i i Y = Y
Or
f : Int -> A -> Maybe A i (X _) = Just (X i) _ _ = Nothing
Given
type A = {X f:Int, Y}
What should the default implementation of
setF
be?Either:
Or