Module Aws.Util
This module contains various helpers used in generated code.
val drop_empty : (string * 'a) list -> (string * 'a) list
Filters an association list, dropping any pairs where the key is the empty string.
val or_error : 'a option -> 'b -> [ `Ok of 'a | `Error of 'b ]
If input is Some a, produces `Ok a, else produces `Error b.
val list_find : ('a * 'b) list -> 'a -> 'b option
Looks for key 'a in association list, producing None if it isn't there.
val option_bind : 'a option -> ('a -> 'b option) -> 'b option
If a is Some a, applies function. Else, produce None.