Created
April 11, 2015 16:45
-
-
Save ashiato45/900a976bc88a596f835c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Control.Applicative | |
main = do | |
let a = sequence $ repeat getLine | |
let b = (takeWhile (<5)) <$> ((read <$>) <$> a) | |
(putStrLn.show) <$> b | |
return () |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
5未満の数字なら入力し続けることができるが、それより大きい数を入力したら止まるプログラムを書きたかった