Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 094898d

Browse files
rename 'countAnyList' to 'lengthAnyList'
As discussed offline `countAnyList` implies an instance of `Countable` from exercise one, where the intention for `countAnyList` was to create a length function for AnyList.
1 parent aee36ab commit 094898d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎exercise01/src/Exercises.hs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ reverseAnyList = undefined
5858
filterAnyList :: (a -> Bool) -> AnyList -> AnyList
5959
filterAnyList = undefined
6060

61-
countAnyList :: AnyList -> Int
62-
countAnyList = undefined
61+
lengthAnyList :: AnyList -> Int
62+
lengthAnyList = undefined
6363

6464
foldAnyList :: Monoid m => AnyList -> m
6565
foldAnyList = undefined

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /