arliss_obsidian/fp/Language/Infix Operators/Common Operators/Applying & Composing Functions.md

8 lines
787 B
Markdown
Raw Normal View History

2024-09-23 23:56:55 +00:00
[[Infix Operators]] commonly used when applying & composing functions
|Operator|Description|Associativity|Precedence|Defined As|
|--|--|--|--|--|
|`$`|function application|right|0|[`Data.Function.apply`](https://pursuit.purescript.org/packages/purescript-prelude/docs/Data.Function#v:($))|
|`#`|flipped function application|left|1|[`Data.Function.applyFlipped`](https://pursuit.purescript.org/packages/purescript-prelude/docs/Data.Function#v:(#))|
|`<<<`|function composition|right|9|[`Control.Category.compose`](https://pursuit.purescript.org/packages/purescript-prelude/docs/Control.Category#v:(%3C%3C%3C))|
|`>>>`|flipped function composition|right|9|[`Control.Category.composeFlipped`](https://pursuit.purescript.org/packages/purescript-prelude/docs/Control.Category#v:(%3E%3E%3E))|