News for hackers. Stuff that matters.
Re:Fun with a Functional Programming Interview Question by al2o3cr on Saturday February 06, 2021 @09:18PM (#26052037)
Surprising that F# doesn't have a "chunkBy" function for sequences; it makes the solution in Elixir vastly more readable than the version in the article:

    "aaaabbbcca" |> String.codepoints() |> Enum.chunk_by(& &1) |> Enum.map(&{hd(&1), length(&1)})
Re:Fun with a Functional Programming Interview Question by DanielBMarkham on Saturday February 06, 2021 @10:17PM (#26052325)
There is a chunkBy, it's just not this nice. This would be a great project for the F#+ guys.