[Haskell-cafe] Intuitive function given type signature

Miguel Mitrofanov miguelimo38 at yandex.ru
Wed May 19 00:43:25 EDT 2010


On 19 May 2010, at 08:35, Ivan Miljenovic wrote:

> This looks suspiciously like homework...
>
> 2010/5/19 R J <rj248842 at hotmail.com>:
>> What are some simple functions that would naturally have the  
>> following type
>> signatures:
>> f :: (Integer -> Integer) -> Integer
>
> I can only think of one solution to this but it doesn't guarantee that
> it returns a value...

I can think of infinitely many solutions.


More information about the Haskell-Cafe mailing list