You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suggest using a pipe equivalent +> for working with streams (piping). +> Could perhaps just be an alias for . but be used to make it more clear we are operating on a stream (or whatever other special construct we like to clearly differentiate from "normal" function call)
constsource=getAsyncStockData();constsubscription=source.filter(quote=>quote.price>30).map(quote=>quote.price).subscribe(price=>console.log(`Prices higher than $30: ${price}`),err=>console.log(`Something went wrong: ${err.message}`));/* When we're done */subscription.dispose();
Could become
source: getAsyncStockData()
subscription: source+>filterquote->quote.price>30+>mapquote->quote.price+>subscribeprice->console.log `Prices higher than $30: \price",
err -> console.log "Something went wrong: \err.message
# Whenwe're done
subscription.dispose()
The text was updated successfully, but these errors were encountered:
For FRP, look at various frp solutions
I suggest using a pipe equivalent
+>
for working with streams (piping).+>
Could perhaps just be an alias for.
but be used to make it more clear we are operating on a stream (or whatever other special construct we like to clearly differentiate from "normal" function call)Could become
The text was updated successfully, but these errors were encountered: