[Haskell-cafe] Code Golf

Sebastian Fischer sebf at informatik.uni-kiel.de
Wed Apr 15 07:53:09 EDT 2009


> diag [[1,2,3],[4],[5,6,7]]
> What it should be?

*Main> diag [[1,2,3],[4],[5,6,7]]
[1,2,4,3,5,6,7]

it's basically just "skipping holes":

1 2 3
4
5 6 7


More information about the Haskell-Cafe mailing list