Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7744b8e

Browse files
committedMay 31, 2017
Alex wants a test for product Nil. OK Alex.
1 parent b51cd05 commit 7744b8e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/Course/List.hs

+3
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ headOr =
8080

8181
-- | The product of the elements of a list.
8282
--
83+
-- >>> product Nil
84+
-- 1
85+
--
8386
-- >>> product (1 :. 2 :. 3 :. Nil)
8487
-- 6
8588
--

0 commit comments

Comments
 (0)
Please sign in to comment.