Skip to content

Conversation

@vito
Copy link
Owner

@vito vito commented Apr 17, 2022

not 1000% sure about the names for these.

(across) takes multiple streams and returns a single stream that returns values read from each stream. can be used for independent triggers in a pipeline. it doesn't skip values on individual streams, but it also doesn't produce every permutation.

(for) is syntax sugar for iterating over multiple streams.

(for [even (list->source [0 2 4])
      odd (list->source [1 3 5])]
  (logf "for: %d %d" even odd))

building blocks for pipelines!

vito added 2 commits April 16, 2022 20:34
not 1000% sure about the names for these.

(across) takes multiple streams and returns a single stream that returns
values read from each stream. can be used for independent triggers in a
pipeline. it doesn't skip values on individual streams, but it also
doesn't produce every permutation.

(for) is syntax sugar for iterating over multiple streams.

  (for [even (list->source [0 2 4])
        odd (list->source [1 3 5])]
    (logf "for: %d %d" even odd))

building blocks for pipelines!
@vito vito added the enhancement New feature or request label Apr 17, 2022
@vito vito merged commit 6b17a73 into main Apr 17, 2022
@vito vito deleted the add-across-and-for branch April 17, 2022 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants