[Libguestfs] [PATCH v12 3/3] New tool: virt-builder-repository
Richard W.M. Jones
rjones at redhat.com
Tue Nov 14 13:35:04 UTC 2017
> > + 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
More information about the Libguestfs
mailing list