export pipe() as function for concise use
See original GitHub issueI’m working with 5.5.0-beta.2
though the exact version does not matter, this is about pipe() in general. In trying to make concise use of the new legible operators, I end up using variants of this snippet of code repeatedly:
someObs.mergeMap(x => x.pipe( ...
I’m hoping to eliminate the superfluous x => x.
from here, using a top level pipe available directly rather than only as an operator on Observable. So instead I could do something like:
import { pipe } from 'rxjs/somewhere';
someObs.mergeMap(pipe( ...
I think this pipe() may be just a function composition function under the good, with all the right TypeScript stuff in place to preserve the developer experience.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How to use PowerShell Objects and Data Piping - Varonis
How to use PowerShell Objects and Data Piping ... ToUpper() HELLO, WORLD! ... In general, scripts are small and do one very concise...
Read more >Use magrittr's pipe in your package — use_pipe • usethis
Exports the pipe operator, if export = TRUE , which is necessary to make %>% available to the users of your package. Usage....
Read more >3 Transforming, summarising, and analysing data
Save and export your data,; Work with RStudio projects,; Run t-tests and fit linear models,; Use %>% pipes to chain functions together.
Read more >Azure Tip 9 – More Azure Powershell (pipes, filters, output ...
Exporting Data From Powershell. In this section we take a look at the following cmdlets: Export-Csv; ConvertTo-Json; ConvertTo-Html; ConvertTo- ...
Read more >Tips for using the Azure CLI successfully - Microsoft Learn
Learn tips for using Azure CLI successfully, such as output formats, passing parameter values, and quoting rules for different shells.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m hoping that by the final release of v6 everyone will be able to just import straight from
rxjs
like:What remains to be seen is whether that will work well with bundlers or not. It seems like bundlers have some catch-up to do.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.