Platform
Resources
Pricing
Sign in
Get started
KyungYeol Kim
curious hacker. ❤️Elixir.
Workspace
Fork
Published
By
KyungYeol Kim
Edited
Apr 22, 2018
Fork of
merge arrays alternatingly from tail
1 star
Insert cell
Insert cell
result
=
_
.
chain
(
[
alphabets
,
numbers
]
)
.
map
(
array
=>
_
.
reverse
(
array
)
)
.
reduce
(
(
result
,
array
)
=>
{
_
.
map
(
array
,
(
item
,
i
)
=>
{
(
result
[
i
]
=
result
[
i
]
||
[
]
)
.
push
(
item
)
return
result
[
i
]
}
)
return
result
}
,
[
]
)
.
flatten
(
)
.
reverse
(
)
.
value
(
)
Insert cell
Insert cell
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
Compare fork
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
result
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
numbers
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
alphabets
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
_
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML