From e44faac958c46b765d24e552b391900d90d997a8 Mon Sep 17 00:00:00 2001 From: Hammy Date: Mon, 5 Apr 2021 22:08:08 +0100 Subject: [PATCH] Rename arguments --- Unit 1/Lesson 6/lists.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Unit 1/Lesson 6/lists.hs b/Unit 1/Lesson 6/lists.hs index fd25f92..fbf58f4 100644 --- a/Unit 1/Lesson 6/lists.hs +++ b/Unit 1/Lesson 6/lists.hs @@ -2,7 +2,7 @@ myRepeat :: a -> [a] myRepeat n = cycle [n] subseq :: Int -> Int -> [a] -> [a] -subseq first last aList = take last (drop first aList) +subseq start end aList = take end (drop start aList) inFirstHalf :: Eq a => a -> [a] -> Bool inFirstHalf item aList = item `elem` firstHalf