This looks suspiciously like homework...

2010/5/19 R J <[email protected]>:
> 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...

> g :: (Integer -> Integer) -> (Integer -> Integer)

Infinite possible functions.  Don't forget, this is equivalent to:

g :: (Integer -> Integer) -> Integer -> Integer


-- 
Ivan Lazar Miljenovic
[email protected]
IvanMiljenovic.wordpress.com
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to