arliss_obsidian/fp/Language/Functions/Applying.md
Orion Kindel 3701b1e2f8
update
2024-09-23 18:56:55 -05:00

746 B

When 2 or more expressions are separated by whitespace, the left-most expression is a Functions and the others are arguments to it.

````col-md
#### Purescript
```haskell
Number.pow 2.0 10.0
```
````
````col-md
#### JS Equivalent
```javascript
Math.pow(2.0, 10.0)
```
````
````col-md
```haskell
toString a
```
````
````col-md
```javascript
a.toString()
```
````
````col-md
```haskell
intercalate ", " ["a", "b", "c"]
```
````
````col-md
```javascript
["a", "b", "c"].join(", ")
```
````
````col-md
```haskell
intercalate
  ", "
  ["a", "b", "c"]
```
````
````col-md
```javascript
["a", "b", "c"]
  .join(", ")
```
````

!Infix Operators#Infix Position