on master help sign in
Merge pull request #3302 from zjhmale/replace-count-with-enumfrom-in-docs

replace count use enumFromTo and enumFromThenTo in docs

commit46c1cd5ebec6ad10a603d00dc2586dfe0a3101c1 authorJan de Muijnck-Hughes <jfdm@users.noreply.github.com> dateTue 2 Aug 2016, 12:12 (10 years ago) parentb3afac041c19e9
1 file changed+3−2
docs/tutorial/typesfuns.rst+3−2
docs/tutorial/typesfuns.rst+3−2
@@ -1216,8 +1216,9 @@ Pythagorean triples as follows:
12161216The ``[a..b]`` notation is another shorthand which builds a list of
12171217numbers between ``a`` and ``b``. Alternatively ``[a,b..c]`` builds a
12181218list of numbers between ``a`` and ``c`` with the increment specified
1219−by the difference between ``a`` and ``b``. This works for any numeric
1220−type, using the ``count`` function from the prelude.
1219+by the difference between ``a`` and ``b``. This works for type ``Nat``,
1220+``Int`` and ``Integer``, using the ``enumFromTo`` and ``enumFromThenTo``
1221+function from the prelude.
12211222
12221223``case`` expressions
12231224--------------------