25.07.2014 Views

VDM-10 Language Manual

VDM-10 Language Manual

VDM-10 Language Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 5. Function Definitions<br />

Note that we could also use the optional post condition to allow assertions about the result of the<br />

function:<br />

✞<br />

map_inter: (map nat to nat) * (map nat to nat) -> map nat to nat<br />

map_inter (m1,m2) ==<br />

(dom m1 inter dom m2)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!