8000 added example with function comp and reversing list · willdoescode/haskell-leetcode@ab96064 · GitHub
[go: up one dir, main page]

Skip to content

Commit ab96064

Browse files
committed
added example with function comp and reversing list
1 parent f75ecb7 commit ab96064

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Main.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,5 @@ main = do
5555

5656
putStrLn "<-- Sort List -->"
5757
print $ sortList ([9, 3, 4, 1] :: [Int]) -- cast types for no ide warning
58+
print $ (sortList . reverse . take 10) ([0..] :: [Int]) -- cast types for no ide warning
5859
print $ sortList ['c', 'a', 'f', 'y']

0 commit comments

Comments
 (0)
0