I do have open Base at the top, but I get the same error even if I use Stdlib.List.map view_spot m.spot_items; (with out the ~f:). If I get rid of the ~f: with how it currently is, I get the following error:
File "bin/app.ml", line 100, characters 23-32:
100 | List.map view_spot m.spot_items;
^^^^^^^^^
Error: The function applied to this argument has type
?key:Base.string -> Virtual_dom__Node.t
This argument cannot be applied without label
So in one case I have an argument that cannot be applied with a label, and in the other I have an argument that cannot be applied without a label. Literally the only difference between the error messages is that the second one has “out” at the end of “with” .
I’m pretty sure that the first code I posted is more correct, again because I do have open Base at the top so using the ~f convention is probably right, but I’m still not really sure what’s going on.