> + Index.file_uri = file_uri }) ->
You can write:
fun (id, { Index.arch; Index.file_uri }) ->
.. or even better:
fun (id, { Index.arch; file_uri }) ->
as OCaml (since 4.01) knows that all the labels in a struct must come
from the same module, so you only need to name the module once.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html