4 ms·
Also in Haskell [0]: (|>) :: Seq a -> a -> Seq a O(1). Add an element to the right end of a sequence. Mnemonic: a triangle with the single element at t
by reirob 12y ago
Also in Haskell [0]:
(|>) :: Seq a -> a -> Seq a
O(1). Add an element to the right end of a sequence. Mnemonic: a triangle with the single element at the pointy end.
It seems to be in the containers package since 2005: [1]
[0]: http://hackage.haskell.org/package/containers-0.5.5.1/docs/Data-Sequence.html#v:-124--62- http://hackage.haskell.org/package/containers-0.5.5.1/docs/D...
[1]: https://github.com/haskell/containers/commit/1e61853dbd4b9fc6ecc58ad655990ea5e971fa13#diff-a4090fc3521182bd8d1ac467d170c6aaR40 https://github.com/haskell/containers/commit/1e61853dbd4b9fc...
- platz 12y agoWhich has a totally different meaning from the F# usage. '|>' from F# is the same as 'flip $' in haskell, or (&) imported from the lens library