[Libguestfs] [PATCH] v2v: remove MAC address related information

Richard W.M. Jones rjones at redhat.com
Tue Feb 27 12:40:08 UTC 2018


On Tue, Feb 27, 2018 at 01:08:40PM +0100, Tomáš Golembiovský wrote:
> >   List.iter (g#aug_rm |> ignore) paths;
> 
> Ah, right. The magical |> operator... I keep forgetting about it.

Best way to think of it is that it's a pipeline that threads the
argument through each function in turn.

  (f1 |> f2 |> f3 |> ...) arg

is the same as

  f3 (f2 (f1 arg))

F# calls it "pipe forward" and they also have a "pipe backward"
operator (I just found out now).

  http://theburningmonk.com/2011/09/fsharp-pipe-forward-and-pipe-backward/

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top




More information about the Libguestfs mailing list