
24 Mar
2011
24 Mar
'11
6:34 a.m.
1. To use the Data.List is so easy as it's in the 'prelude'. but when I want to get some elements by index, I need to use Array, or sometime I want to use ByteString for some good reason. We all know It's some 'linear ordered things'. Is there some method for me to use just one form of 'list' with every possible function on it. 2. f1 :: (Integral a) => a -> String f2 :: (Integral a) => String -> a pipe = f1 . f2 It is clear that pipe is String -> String, but.(1)How can I know what instance that 'a' is. (2)How can I determine what instance of 'a' is. -- ---------------- 吴兴博