Haskellをラクガク

2006-09-10第3章

3.6 練習問題 00:59

main = do   cs <- getContents
            putStr $ concat $ map swapa cs

swapa 'a' = ['A']
swapa 'A' = ['a']
swapa c = [c]
>swapa < swapa.hs
mAin = do   cs <- getContents
            putStr $ concAt $ mAp swApA cs

swApA 'A' = ['a']
swApA 'a' = ['A']
swApA c = [c]

できたはできたけど、答えをみたらswapaの結果をわざわざリストで返す必要はないらしい。そっか、Char -> Charだから、

map swapa cs

の結果はCharリスト、すなわち文字列ってことか。

JitendraJitendra2013/03/31 19:08You got to push it-this essenital info that is!

mtvaruskmtvarusk2013/04/01 18:43Deq8yX <a href="http://skhinelwwzmf.com/">skhinelwwzmf</a>

phohdkphohdk2013/04/02 08:00ubDOK6 <a href="http://eztuvogqcylk.com/">eztuvogqcylk</a>

atvombgxmvhatvombgxmvh2013/04/04 19:36JlTRKD , [url=http://jnsvmvqssnqo.com/]jnsvmvqssnqo[/url], [link=http://bkmypnftmjxj.com/]bkmypnftmjxj[/link], http://voeqapkvfjqy.com/

JooceenaveJooceenave2018/10/27 21:24online casino slots
<a href=http://playslotscasino888.com/>new usa online casinos 2017</a>
pogo casino slots
<a href="http://playslotscasino888.com/">best us casinos online</a>
pogo casino slots

CarsenTopCarsenTop2018/10/27 23:30free casino games and poker
<a href=http://playslotscasino888.com/>casino games slots</a>
vegas casino games
<a href="http://playslotscasino888.com/">casino games real money</a>
casino games free

JooceenaveJooceenave2018/10/29 01:11online casinos 2016
<a href=http://playslotscasino888.com/>new usa online casinos</a>
online casino
<a href="http://playslotscasino888.com/">casino online gambling</a>
best us casinos online

MofgyLoafeMofgyLoafe2018/10/30 17:35casino online usa
<a href=http://gamecasinosonline.com/>play casinos</a>
play casino games online
<a href="http://gamecasinosonline.com/">casino online application</a>
pogo casino slots

LasriKagLasriKag2018/10/30 20:13online casino
<a href=http://casinousaonlinelist.com/>free casino games and poker</a>
online casino real money
<a href="http://casinousaonlinelist.com/">casino g</a>
online casinos 2016

LasriKagLasriKag2018/11/01 14:53vegas casino games
<a href=http://casinousaonlinelist.com/>play casino games online</a>
online casinos 2016
<a href="http://casinousaonlinelist.com/">casino online free</a>
casino online usa

MofgyLoafeMofgyLoafe2018/11/02 09:38casino games free online
<a href=http://gamecasinosonline.com/>online casinos 2016</a>
best us casinos online
<a href="http://gamecasinosonline.com/">casino online free</a>
casino online free

BeulahwristBeulahwrist2018/11/02 17:57seneca niagara casino
<a href=http://traditionzonecasino.com/>chumba casino login</a>
sugarhouse online casino nj
<a href="http://traditionzonecasino.com/">sandia casino</a>
hollywood casino free slots online

DaisymupDaisymup2018/11/02 20:20onlinecasinos
<a href=http://trustzonecasino.com/>downstream casino</a>
doubledown casino promo codes forum
<a href="http://trustzonecasino.com/">olg online casino</a>
hollywood casino games free

JooceenaveJooceenave2018/11/03 22:50casinos online
<a href=http://playslotscasino888.com/>free casino games and poker</a>
online casino real money
<a href="http://playslotscasino888.com/">casino games roulette</a>
online casino real money

CarsenTopCarsenTop2018/11/04 01:19online casino
<a href=http://playslotscasino888.com/>casino games free</a>
casino games free online
<a href="http://playslotscasino888.com/">casino g</a>
casino games list

ChbriCizChbriCiz2018/11/06 08:02new usa online casinos
<a href=http://slotsmegacasino.com/>vegas casino games</a>
new usa online casinos 2017
<a href="http://slotsmegacasino.com/">casino games roulette</a>
best online casino games free

MonitaGeshyMonitaGeshy2018/11/16 19:42casino games
<a href=http://gamecasinosonline.com/>play casinos</a>
play casino games online
<a href="http://gamecasinosonline.com/">play casino games online</a>
online casino

NatshaDigNatshaDig2018/11/18 21:17casino g
<a href=http://trustzonecasino.com/>casino online for fun</a>
casino online for fun
<a href="http://trustzonecasino.com/">casino games</a>
casino games list

MonitaGeshyMonitaGeshy2018/11/19 11:49vegas casino games
<a href=http://gamecasinosonline.com/>casino online gambling</a>
play casinos
<a href="http://gamecasinosonline.com/">casino online gambling</a>
casino games real money

MonitaGeshyMonitaGeshy2018/11/21 02:09play casino games online
<a href=http://gamecasinosonline.com/>online casino</a>
casino games slots
<a href="http://gamecasinosonline.com/">casino games free online</a>
casino games roulette

TempliemopTempliemop2018/11/21 17:50top rated free online casino games
<a href=http://gamecasinosonline.com/>casino games slots</a>
best online casino games free
<a href="http://gamecasinosonline.com/">casino games free</a>
casinos online

YvouneSmedyYvouneSmedy2018/11/24 21:48play casino games online
<a href=http://gamecasinosonline.com/>casino online for fun</a>
casino games real money
<a href="http://gamecasinosonline.com/">casino online application</a>
casino games free