File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 65
65
66
66
singleton :: forall a. a -> [a]
67
67
68
- slice :: forall a. Prim.Number -> Prim.Number -> [a] -> [a]
69
-
70
68
snoc :: forall a. [a] -> a -> [a]
71
69
72
70
sort :: forall a. (Ord a) => [a] -> [a]
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ module Data.Array
17
17
, reverse
18
18
, drop
19
19
, take
20
- , slice
21
20
, insertAt
22
21
, deleteAt
23
22
, updateAt
@@ -130,12 +129,8 @@ foreign import drop
130
129
\ };\
131
130
\}" :: forall a . Number -> [a ] -> [a ]
132
131
133
- foreign import take
134
- " function take (n) {\
135
- \ return function (l) {\
136
- \ return l.slice(0, n);\
137
- \ };\
138
- \}" :: forall a . Number -> [a ] -> [a ]
132
+ take :: forall a . Number -> [a ] -> [a ]
133
+ take n = slice 0 n
139
134
140
135
foreign import slice
141
136
" function slice (s) {\
You can’t perform that action at this time.
0 commit comments