mirror of
https://github.com/FiloSpaTeam/plutus-pioneer-program.git
synced 2024-11-15 03:12:34 +01:00
25 lines
334 B
Haskell
25 lines
334 B
Haskell
|
-- public static int foo() {
|
||
|
-- ...
|
||
|
-- }
|
||
|
--
|
||
|
-- ...
|
||
|
--
|
||
|
-- ... foo() ... foo()
|
||
|
|
||
|
-- foo :: Int
|
||
|
-- foo = ...
|
||
|
|
||
|
-- let x = foo in ... x ... x ...
|
||
|
-- ... foo ... foo ...
|
||
|
|
||
|
-- foo :: IO Int
|
||
|
-- foo = ...
|
||
|
|
||
|
main :: IO ()
|
||
|
main = bar -- putStrLn "Hello, world!"
|
||
|
|
||
|
bar :: IO ()
|
||
|
bar = getLine >>= \s ->
|
||
|
getLine >>= \t ->
|
||
|
putStrLn (s ++ t)
|