in this piece of code:
let rec write_from_exactly out s offs len =
Lwt_unix.write out s offs len >>= fun n ->
if n = len then Lwt.return ()
else write_from_exactly out s (offs + n) (len - n)
in ...
Although I can more or less guess what it does, I couldn't find any official definition on what ">>=" means and how it works.