Snippets created by amieres

  • Free-monad interpreter

    Re-hash of the Free-monad interpreter by erdeszt https://gist.github.com/erdeszt/f8b351b5e6ec4fd903ef based on http://programmers.stackexchange.com/a/242803/145941

    4 people like this

    Posted: 6 years ago by amieres

  • Seq.splitBy, Seq.splitAt, Seq.tryHeadTail

    The example uses Seq.splitBy and Seq.tryHeadTail twice to split the input file in two and then into several pieces collecting the output file names in the first section and the content in the subsequent pieces It can efficiently split a huge 2.2GB file into several subfiles without having to rescan the file or cache in memory any portions of the file apart from the current line.

    5 people like this

    Posted: 2 months ago by amieres