Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/prelude/PreludeList/Unzip3.hs
module Prelude where unzip3 :: [(a,b,c)] -> ([a],[b],[c]) unzip3 = foldr (\(b,c,d) ~(bs,cs,ds) -> (b:bs,c:cs,d:ds)) ([],[],[])