Module Core_kernel.Fn
Extends Base.Fn
.
include Base.Fn
val ignore : _ -> unit
ignore
is the same asCaml.ignore
. It is useful to have here so that code that rebindsignore
can still refer toFn.ignore
.
val forever : (unit -> unit) -> exn
forever f
runsf ()
until it throws an exception and returns the exception. This function is useful for read_line loops, etc.