caolan / caolan/highland

Any way to convert array into individual values?

Open
#619 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.4k
Forks
145
PR merge metrics
No merged PRs in 30d

Description

In this code, `download` returns an array of many objects, but `handleSingleObject` expects a single object to be piped through it. Is there a way to convert an array of objects into a single object for piping further down the chain?

```js
highland(myArray)
.map(page => highland(download(page))
.parallel(5)
.pipe(handleSingleObject())
...
```

Contributor guide

Open the contributing guide

Research direction

Start with the Highland pipeline shown in the issue and trace how the array returned by download reaches handleSingleObject after parallel(5). Done means determining whether existing stream operations can emit individual objects for handleSingleObject, or whether a library change would be needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
stream-processing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.