arliss_obsidian/fp/Terminology/Point-free.md

19 lines
244 B
Markdown
Raw Normal View History

2024-09-24 22:52:08 +00:00
Written without explicit arguments and application, e.g.
```haskell
foo a b = bar a b
```
can be written point-free as
```haskell
foo = bar
```
Rewriting
```haskell
\a -> g (f a)
```
as
```haskell
g << f
```
is also referred to as point-free.