# Libtmux.Expr.compile

- **Module:** Libtmux
- **Package:** libtmux
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/lib/libtmux.mli#L624
- **Public owner:** Libtmux
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux-expr-compile/

```
val compile : 'a t -> 'a -> bool
```

Prepare a reusable predicate. Compilation and evaluation perform no I/O.

## Parameters

- `arg1` (`'a t`)
- `arg2` (`'a`)

## Guides

Pages that discuss `compile`.

- [Query captured data](/en/ocaml/latest/guides/queries/)
