middle - between ::...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
--helper functions middle :: Int->Int->Int->Int middle x y z | between y x z = x | between x y z = y | otherwise = z
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: between :: Int->Int->Int->Bool between x y z | x <= y <= z = True | otherwise = False...
View Full Document

Ask a homework question - tutors are online