Add variants of Df functions that handle function arguments wrapped in signals #107
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Various
Df
combinators are higher-order functions, such asmap
andfilter
. Sometimes it is handy if those combinators are able to handle functions that are wrapped inside of aSignal
. For example:In this case we want to filter out all invalid ARP packets from a
Df
stream. But such a filter depends on our IPv4 address, which may change over time and is thus wrapped in aSignal
. Then, the filter function itself is also wrapped in aSignal
.This PR adds such combinators, named with an
S
suffix. Formap
andfilter
we already have such functions. This PR adds: