The Ocaml std library is a bit lackluster and people often replace it with something more featureful.<p>BTW, I think <a href="https:&#x2F;&#x2F;github.com&#x2F;c-cube&#x2F;sequence" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;c-cube&#x2F;sequence</a> is more in closer to the generic iterable datatype you are looking for. You still need to convert to and from the seq type but its pretty close...