RosettaCodeData/Task/Variables/Haskell/variables-1.hs

12 lines
148 B
Haskell
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
foobar = 15
f x = x + foobar
where foobar = 15
f x = let foobar = 15
in x + foobar
f x = do
let foobar = 15
return $ x + foobar