package tiny_libs

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

Module UtilitySource

Sourcetype ('context, 'action) option_ = {
  1. action : 'action;
  2. label : string;
  3. score : 'context -> float;
}
Sourceval scores : ('context, 'action) option_ list -> 'context -> ('action * float) list
Sourceval choose : ?current:'action -> ?inertia:float -> ('context, 'action) option_ list -> 'context -> 'action option
Sourceval clamp01 : float -> float
Sourceval linear : lo:float -> hi:float -> float -> float