definition of List.transpose

Doug McIlroy doug at cs.dartmouth.edu
Sun Mar 1 23:39:58 UTC 2015


Sorry for a stylistic lapse in a post I just sent from 
the wrong file. A tail should be called ts, not tss, in the
proposed reference definition for List.transpose

Doug

transpose xss = case [h | (h:_) <- xss] of
	[] -> []
	hs -> hs : transpose [ts | (_:ts) <- xss]


More information about the Haskell-prime mailing list