lean4-htt/tests/lean/run/bor_lazy.lean
Leonardo de Moura 792040b1a5 feat(library/init/bool): mark bor, band and cond as inline
The idea is to get short-circuit evaluation for Boolean operators.
2016-06-05 13:03:33 -07:00

3 lines
84 B
Text

open bool
vm_eval (timeit "branch1:" (λ x, tt)) || (timeit "branch2:" (λ x, tt))