I was playing solving some problems with Haskell and I was impressed by its readability that I wanted to share with you. Like we say in Python: "Readability counts"... just in this case is Haskell the more readable.
maybe a tad more readable python version (you don't have to understand the slicing):" ".join(reversed("around the world".split()))
Yes, it makes sense, and very cool :-).
nice blog... keep sharing..continue to blog..Edina MN RealtyCanada FreightFreight CanadaHouston SEOHouston Search Engine OptimizationAlaska King Salmon Fishing
very nice...///...
The Haskell version looks slightly better. But neither version looks incredibly readable.
Haskell is a beautiful language, it just takes some time to get used to it. Can't sat anything about Python, but i'm trying it out.Be as it may, FP is here to stay. You'd better get used to the idea. Or go to do some COBOL legacy maintenance... YUCK !!
Or...unwords . reverse . words $ "around the world"is how I'd do it. I'm fairly proficient in Haskell, and I'm really loving everything. Wonderful language.
maybe a tad more readable python version (you don't have to understand the slicing):
ReplyDelete" ".join(reversed("around the world".split()))
Yes, it makes sense, and very cool :-).
ReplyDeletenice blog... keep sharing..
ReplyDeletecontinue to blog..
Edina MN Realty
Canada Freight
Freight Canada
Houston SEO
Houston Search Engine Optimization
Alaska King Salmon Fishing
very nice...///...
ReplyDeleteThe Haskell version looks slightly better. But neither version looks incredibly readable.
ReplyDeleteHaskell is a beautiful language, it just takes some time to get used to it. Can't sat anything about Python, but i'm trying it out.
ReplyDeleteBe as it may, FP is here to stay. You'd better get used to the idea. Or go to do some COBOL legacy maintenance... YUCK !!
Or...
ReplyDeleteunwords . reverse . words $ "around the world"
is how I'd do it. I'm fairly proficient in Haskell, and I'm really loving everything. Wonderful language.