Sourcetype error = | SDL_error of string| Missing_prop of string * string| Font_not_found of string| Could_not_load_font of string
Sourceval sdl_error : string -> 'a Sourceval missing_prop : string -> string -> 'a Sourceval font_not_found : string -> 'a Sourceval could_not_load_font : string -> 'a Sourceval (let>) : ('a, [< `Msg of string ]) Result.t -> ('a -> 'b) -> 'b Sourcetype 'a state_machine = {state : unit -> 'a;set_state : 'a -> unit;f : (int * int) option -> Tsdl.Sdl.event -> bool;
} Sourceval list_insert : 'a list -> pos:int -> 'a -> 'a list Sourceval list_add : ?pos:int -> 'a list -> 'a -> 'a list Sourceval array_array_find_opt : ('a -> bool) -> 'a array array -> 'a option Sourceval array_array_find_index :
('a -> bool) ->
'a array array ->
(int * int) option Sourceval array_array_fold_right : ('a -> 'b -> 'b) -> 'a array array -> 'b -> 'b Sourceval array_array_fold_left : ('a -> 'b -> 'a) -> 'a -> 'b array array -> 'a Sourceval array_array_map : ('a -> 'b) -> 'a array array -> 'b array array Sourceval array_array_to_list : 'a array array -> 'a list Sourceval split_string : ?keep_empty:bool -> string -> char list -> string list Sourceval strip_string : string -> string Sourceval is_prefix : s:string -> pref:string -> bool Sourceval is_suffix : s:string -> suff:string -> bool Sourceval string_contains : s:string -> pat:string -> bool