= 1024" x-on:close-sidebar="sidebar=window.innerWidth >= 1024 && true">
ON THIS PAGE
package obus
-
obus
-
obus.hal
-
obus.network_manager
-
obus.notification
-
obus.ppx
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
This module contain various functions used by both the library and the tools
find_map f l
Apply f
on each element of l
until it return Some x
and return that result or return None
filter_map f l
apply f
on each element of l
and return the list ef element for which f
succeed (i.e. return Some x
)
part_map f l
apply f
on each element of l
and return the list of success and the list of failure
val split : ('a -> ('b, 'c) either) -> 'a list -> 'b list * 'c list
Split a list
A hex-encoded string is a string where each character is replaced by two hexadecimal characters which represent his ascii code
Random number generation
All the following functions try to generate random numbers using /dev/urandom and can fallback to pseudo-random generator
fill_random str ofs len
Fill the given string from ofs
to ofs+len-1
with random bytes.
ON THIS PAGE