package current
Pipeline language for keeping things up-to-date
Install
Dune Dependency
Authors
Maintainers
Sources
current-v0.5.tbz
sha256=f8c884318a46a568d965c7e8bac00dfe2339efac04ca6f0cbabef916d8b917ca
sha512=e0633239a7d02cdde6264db96c39ed7e3d1adf3a7f09bb25ad002d388f203b561e8c808daee90539bc0ee15c547d2ab4bef1789dcc9c22ed00b151bad0083f64
doc/current.term/Current_term/Make/Syntax/index.html
Module Make.Syntax
Source
Applicative syntax
Syntax for map
. Use this to process the result of a term without using any special effects.
Syntax for pair
. Use this to depend on multiple terms.
Monadic syntax
Monadic bind
. Use this if the next part of your pipeline can only be determined at runtime by looking at the concrete value. Static analysis cannot predict what this will do until the input is ready.
let>
is used to define a component. e.g.:
component "my-op" |>
let> x = fetch uri in
...
Like let*
, but allows you to name the operation. e.g.:
component "my-op" |>
let** x = fetch uri in
...
Syntax for pair
. Use this to depend on multiple terms. Note: this is the same as and+
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page