[Haskell-cafe] Producing MinimumValue

Alexteslin alexteslin at yahoo.co.uk
Wed Jul 18 16:42:51 EDT 2007


I am trying to define a function as part of the exercises that gives a
result of a minimum value of the input list of ints. Such as this:

minimumValue :: [Int] -> Int
minimumValue ns ...

using either filter or map functions but Not foldr1, because the exercise
precedes the section on foldr1.
I am confused because using filter - it generates a list on some constraint
function for each element.  

Any hints will be very appreciated.  Thank you  
View this message in context: http://www.nabble.com/Producing-MinimumValue-tf4106379.html#a11677240
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

More information about the Haskell-Cafe mailing list