shortest :: (Num a) => [[a]] -> [a]shortest (x:xs) = if sum x < sum (shortest xs) thenx else shortest xs
无法推断( a)由于使用<' from the context (Eq a) bound by the type signature forshortest :: Eq a =>
1) shortest_string returns the shortest string regardless of ordering/shortest-string-spec.rb:25:in `block (2 levels) in <top (required)>def shortest_string' do expect