Understand Core's `Fn.const`
问题 Jane Street's Core lib has such a function: Fn.const . https://github.com/janestreet/core_kernel/blob/master/lib/fn.ml let const c = (); fun _ -> c val const : 'a -> 'b -> 'a produces a function that just returns its first argument I really don't understand it. What's the purpose of this function? In what scenario we have to use it? Why put (); first? Why not write it as let const c = fun () -> c ? this will give a function taking unit as parameter and always returns initial c . If I do let f