Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Strážné podmínky●hodnotové vzory umožní testovat (a takodlišovat) jen jednoduchou shodu (rovnost).U složitějších podmínek je nutno použít tzv.strážné podmínky [guards]signum x | x < 0 = -1| x == 0 = 0| otherwise = 1filtr _ [] = []filtr predikat (x:xs)| predikat x = x : filtr xs| otherwise = filtr xs