# compose

**Kind:** Function

**Source:** [`atloria-monorepo/packages/editor/src/utils/fp.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/editor/src/utils/fp.ts#L5)

Performs left to right composition of two functions.

## Signature

```ts
function compose(a: (arg: A) => R, b: (arg: I) => A): (arg: I) => R
```

## Parameters

| Name | Type |
|---|---|
| `a` | `(arg: A) => R` |
| `b` | `(arg: I) => A` |

**Returns:** `(arg: I) => R`
