clojure-uebungen/Assignment_009/solution/readme.md

9 lines
121 B
Markdown
Raw Normal View History

2024-03-11 10:34:40 +01:00
# Lösung: Vor- und Nachbedingung
2024-03-11 10:32:49 +01:00
2024-03-11 10:39:04 +01:00
```$2(defn sqrt [n]
{ :pre [(>= n 0)]
:post [(> % 0)]}
(Math/sqrt n))
```