The unpac monorepo manager self-hosting as a monorepo using unpac
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #739 from talex5/doc-seq

Add example to `Buf_read.seq` documentation

authored by

Thomas Leonard and committed by
GitHub
5e75c672 21c99201

+7
+7
vendor/opam/eio/lib_eio/buf_read.mli
··· 218 218 It is not necessary to consume all the elements of the 219 219 sequence. 220 220 221 + Example ([head 4] is a parser that takes 4 lines): 222 + 223 + {[ 224 + let head n r = 225 + r |> Buf_read.(seq line) |> Seq.take n |> List.of_seq 226 + ]} 227 + 221 228 @param stop This is used before parsing each item. 222 229 The sequence ends if this returns [true]. 223 230 The default is {!at_end_of_input}. *)