Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Unix system programming in OCaml (2014). Parent comment
type optional_bytes = (Bytes.t * Bytes.t) let get i (data, mask) = match mask.[i] with | '\x00' -> None | _ -> Some data.[i]
If you're using lists because you're doing all manner of comprehensions, you'd still be better iterating over the Bytes and rebuilding using a Buffer.
There are no comments on this comment yet.
If you're using lists because you're doing all manner of comprehensions, you'd still be better iterating over the Bytes and rebuilding using a Buffer.