Elektrine lite

← Feed

@jer_gib@functional.cafe

Post #2735428

2026-05-11 08:24 UTC

@byorgey@mathstodon.xyz Like this: ``` transpose :: [[a]] -> [[a]] transpose = unfoldr next where next xss = case takeWhile (not . null) xss of [] -> Nothing yss -> Just (map head yss, map tail yss) ```

Replies (0)

No replies.