What is the “a” in “List a” in the length example?
问题 I'm wondering where I can find information about the " a " used in the Length example. It seems to be a type of some kind? 回答1: [1,2,3] is a List Int , functions that could only work with a Lists of Ints would have to have List Int in their type signature. ["a", "b"] is a List String , functions that could only work with a Lists of Strings would have to have List String in their type signature. A function that works with a list of any type (for example List.length ) can have a generic type