Platform
Resources
Pricing
Sign in
Get started
recifs
Fil’s live coding experiments
Workspace
Fork
Public
Array
By
Fil
Edited
Sep 5, 2022
2 stars
Array
flat groups
Hello, Growable Typed Arrays
Hello, performance.memory
Bit vector
Insert cell
Insert cell
GrowableUint8Array
=
import
(
'https://cdn.skypack.dev/@fictivekin/growable-uint8-array@1.2.0?min'
)
.
then
(
d
=>
d
.
default
)
Insert cell
A
=
new
GrowableUint8Array
(
new
Uint8Array
(
0
)
,
2
)
Insert cell
N
=
3e7
Insert cell
{
for
(
let
i
=
0
;
i
<
N
;
++
i
)
A
.
extend
(
[
i
]
)
return
A
.
unwrap
(
)
}
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Edit
Show 4 comments
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
GrowableUint8Array
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
A
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
N
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML