I am working on a project and I want to create a really compact method for creating entities and attributes.
I want to do this using a pipeline operator. But I want to add additional features to this operator.
Such as:
let entity = (entity "name") |>> (attribute "attr" String) |>> (attribute "two" String)
In this example | → would be a pipeline operator along with functionality to add an attribute to an entity.
I know this works:
let entity = (entity "name") |> addAttr (attribute "attr" String)
So I want to know if you can replace
|> addAttr
from
|>>
thanks for the help
(I don't know if this is possible)
source share