package trampoline

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

This module implements a trampoline for deeply recursive functions, most useful for the bytecode interpreter and JavaScript targets.

module type Trampoline = sig ... end

The type of a trampoline that doesn't use the stack for recursive computation.

This is a real trampoline implementation.

If you don't want to use trampolines because you're sure that your stack is large enough but you have a functor that depends on the Trampoline module then you can use Not_a_trampoline to use the stack instead of trampolines.

OCaml

Innovation. Community. Security.