Skip to content

Commit 09d1503

Browse files
committed
progress
1 parent a9c6958 commit 09d1503

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

Reverse.hs

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module Reverse where
2+
3+
-- "Curry is awesome" -> "awesome is Curry."
4+
rvrs :: String -> String
5+
rvrs x = drop 9 x ++ (drop 5 (take 9 x)) ++ take 5 x ++ "."
6+
7+
main :: IO ()
8+
main = print $ rvrs "Curry is awesome"

ThirdLetter.hs

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
thirdLetter :: String -> Char
2+
thirdLetter x = x !! 2

TopOrLocal.hs

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module TopOrLocal where
2+
3+
topLevelFunction :: Integer -> Integer
4+
topLevelFunction x = x + woot + topLevelValue
5+
where
6+
woot :: Integer
7+
woot = 10
8+
9+
topLevelValue :: Integer
10+
topLevelValue = 5

0 commit comments

Comments
 (0)