on master help sign in
since count function deprecated in Prelude, update doc use enumFromTo

and enumFromThenTo function in Prelude for claifying

commit41c19e9b2e3614e2c1a439c9ee268d0bc017550a authorzjhmale <zjhmale@gmail.com> dateSun 31 Jul 2016, 23:45 (10 years ago) parent034169b
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--------------------