소스 검색

cleanup

master
Shaun Kerr 5 년 전
부모
커밋
2220b3753c
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. +4
    -2
      beer.hs

+ 4
- 2
beer.hs 파일 보기

@@ -11,8 +11,10 @@ conk [] _ = id
lyrc'b'o :: Integer -> ((Integer -> String) -> String)
lyrc'b'o x
| (x == 0) = (\_ -> "no more bottles")
| (x == 1) = (\f -> conk [(f x), "bottle"] (' ':) $ [])
| otherwise = (\f -> conk [(f x), "bottles"] (' ':) $ [])
| (x == 1) = cenk "bottle" x
| otherwise = cenk "bottles" x
where
cenk s x = (\f -> conk [(f x), s] (' ':) $ [])

lyrc's'o :: String -> ((Integer -> String) -> String)
lyrc's'o s = (\_ -> s)


불러오는 중...
취소
저장