A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
2
Task/Inverted-syntax/Haskell/inverted-syntax-1.hs
Normal file
2
Task/Inverted-syntax/Haskell/inverted-syntax-1.hs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
when :: Monad m => m () -> Bool -> m ()
|
||||
action `when` condition = if condition then action else return ()
|
||||
2
Task/Inverted-syntax/Haskell/inverted-syntax-2.hs
Normal file
2
Task/Inverted-syntax/Haskell/inverted-syntax-2.hs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
func a b x = (x + y) / y
|
||||
where y = a * b
|
||||
3
Task/Inverted-syntax/Haskell/inverted-syntax-3.hs
Normal file
3
Task/Inverted-syntax/Haskell/inverted-syntax-3.hs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
func a b x =
|
||||
let y = a * b in
|
||||
(x + y) / y
|
||||
Loading…
Add table
Add a link
Reference in a new issue