This repository was archived by the owner on Oct 4, 2020. It is now read-only.
Commit e0d3e83
Add
* Add `toArray` for HTMLCollection
With a lot of help from @garyb, here's the `toArray` for HTMLCollection.
It returns the elements within the collection as an Array of Element
objects. It was suggested that this be returned as an Unfoldable, but
the `item` function is effectful, so the plan was ruined.
* Update toArray to use FFI
It's not great, but it's going to be more performant and just as
"correct" (for some definition of correctness).toArray for HTMLCollection (#109)1 parent 2bea9c7 commit e0d3e83
2 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
0 commit comments