In the wonderful FBlazorShop
repo, Onur Gumus is riffing off of Steve Sanderson’s Pizza Workshop with F# flavor. On line 128 of blob/master/FBlazorShop.Web.BlazorClient/Home/Home.fs
[GitHub], Onur is passing an Elmish Message
for the parent, HomeView
, inheriting ElmishComponent<Model, Message>
, to a child, PizzaConfigView
, inheriting ElmishComponent<Model, PizzaConfigMsg>
. By convention, we can see Message
being converted (?) to PizzaConfigMsg
with this:
(PizzaConfigMsg >> dispatch)
where dispatch
is of type Message -> unit
. At the time of this writing, I have no idea how this ‘conversion’ is happening (in part because I refuse to compile this repo by going back to .NET core 3.x). I am not familiar with this usage of the >>
operator. Is this operation actually a conversion or is something else going on?