Module Core_kernel.Fn
Extends Base.Fn.
include Base.Fn
val ignore : _ -> unitignoreis the same asCaml.ignore. It is useful to have here so that code that rebindsignorecan still refer toFn.ignore.
val forever : (unit -> unit) -> exnforever frunsf ()until it throws an exception and returns the exception. This function is useful for read_line loops, etc.
val apply_n_times : n:int -> ('a -> 'a) -> 'a -> 'aapply_n_times ~n f xis then-fold application offtox.
val id : 'a -> 'aThe identity function.
See also:
Sys.opaque_identity.