1. 7

  2. 5

    Cheesy, I know but,

    Quicksort in three lines of haskell:


    ~3ish, if you don’t include the type signature.

    1. 6

      There’s 3 lines, and then there’s 3 lines. This falls clearly in the 3 lines camp (fuzzy, e.g. “yeah, there’s 3 newlines, but about 15 statements per line”), and while an impressive slinging of bash, has a pretty misleading title.

      1. 2

        I think it’s fair to think that. However, my personal constraints were just to keep it under 80 chars per line.