UNPKG

lean4-code-actions

Version:

Refactorings and snippets for Lean 4

4 lines (2 loc) 158 B
import { BasicArithmetic } from '../arithmetic' export const halve = <N>({ div, fromNumber }: BasicArithmetic<N>) => (value: N) => div(value, fromNumber(2))