Skip to content

Commit cba046d

Browse files
committed
Merge pull request #14 from jdantonio/range-alias
Added the (..) function as an alias to range.
2 parents 4fe2736 + f29e7b3 commit cba046d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929

3030
(!!) :: forall a. [a] -> Number -> Maybe a
3131

32+
(..) :: Number -> Number -> [Number]
33+
3234
(\\) :: forall a. (Eq a) => [a] -> [a] -> [a]
3335

3436
append :: forall a. [a] -> [a] -> [a]

src/Data/Array.purs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module Data.Array
22
( (!!)
3+
, (..)
34
, snoc
45
, singleton
56
, head
@@ -287,6 +288,9 @@ foreign import range
287288
\ };\
288289
\}" :: Number -> Number -> [Number]
289290

291+
(..) :: Number -> Number -> [Number]
292+
(..) = range
293+
290294
foreign import zipWith
291295
"function zipWith (f) {\
292296
\ return function (xs) {\

0 commit comments

Comments
 (0)