Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 193 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 193 Bytes

Contracts

Design by Contract for Elixir

Usage

requires x > 0
ensures (result * result) <= x && (result+1) * (result+1) > x
def sqrt(x) do
  :math.sqrt(x)
end