Platform
Resources
Pricing
Sign in
Get started
Dennis Heihoff
Workspace
Fork
Published
By
Dennis Heihoff
Edited
Mar 14, 2019
Insert cell
Insert cell
toCount
=
tx
.
map
(
x
=>
`Count: ${
x
}`
)
Insert cell
Insert cell
toCountEven
=
tx
.
comp
(
tx
.
filter
(
x
=>
x
%
2
==
0
)
,
toCount
)
Insert cell
Insert cell
tx
.
iterator
(
toCountEven
,
tx
.
range
(
)
)
Insert cell
tx
.
iterator
(
tx
.
comp
(
toCountEven
,
tx
.
delayed
(
1000
)
)
,
tx
.
range
(
)
)
Insert cell
Insert cell
[
...
tx
.
iterator
(
toCountEven
,
tx
.
range
(
10
)
)
]
Insert cell
Insert cell
tx
.
transduce
(
toCountEven
,
tx
.
reducer
(
(
)
=>
[
]
,
(
acc
,
x
)
=>
(
acc
.
add
(
x
)
,
acc
)
)
,
new
Set
(
)
,
tx
.
range
(
20
)
)
Insert cell
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
toCount
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
toCountEven
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML