In haskell, one could write :
containsTen::Num a => Eq a => [a] -> Bool
containsTen (x : y : xs)
| x + y == 10 = True
| otherwise = False
Is it possible to write something equivalent in Idris, without doing it with ifThenElse
(my real case is more complex than the one above)?
| x+y == 10 ... | func (x * y + 52) > 42 = ...
. – Larva