How to apply two functions onto the same string without using ">>"
Posted
by altair211
on Stack Overflow
See other posts from Stack Overflow
or by altair211
Published on 2010-03-29T18:29:31Z
Indexed on
2010/03/29
19:03 UTC
Read the original article
Hit count: 113
haskell
Hi, I am writing a function like this.
func :: IO()
func = putStr print "func = putStr print"
I know it is incorrect but the idea is I want the putStr
applied onto the string then print
applied onto the same string "fun = .."
so that the output would be:
func = putStr print "func = putStr print"
which is the same as my function definition. Thanks
© Stack Overflow or respective owner