Haskell. Where with two definitions
1 answer
Leave all but the first where:
plus:: Int -> Int -> Int
plus a b = x + y
where x = f1 a
y = f2 b
note that
- definitions must match
- you should backtrack only with spaces and not behind tabs (some text editors do not use the standard tab tab width driven by ghc to assume that the last line is indented further or less than it actually is; error)
+15