package octez-libs
include module type of Tezos_stdlib.TzList
repeat n x
is List.of_array (Array.make n x)
but more efficient.
If n < 0
it is the empty list []
.
take_n n l
returns the n
first elements of l
.
If n < 0
it is the empty list []
. If n > List.length l
it is the list l
in its entirety.
rev_take_n n l
is List.rev (take_n n l)
but more efficient.
drop_n n l
returns the suffix of l
after the first n
elements.
If n < 0
it is the list l
in its entirety. If n > List.length l
it is the empty list []
.
split_n n l
is (take_n n l, drop_n n l)
but more efficient.
rev_split_n n l
is (rev_take_n n l, drop_n n l)
but more efficient.
include module type of Tezos_error_monad.TzLwtreslib.List
val nil_e : ('a list, 'trace) result
val nil_s : 'a list Lwt.t
val init :
when_negative_length:'trace ->
int ->
(int -> 'a) ->
('a list, 'trace) result
val combine :
when_different_lengths:'trace ->
'a list ->
'b list ->
(('a * 'b) list, 'trace) result
val rev_combine :
when_different_lengths:'trace ->
'a list ->
'b list ->
(('a * 'b) list, 'trace) result
val iter2 :
when_different_lengths:'trace ->
('a -> 'b -> unit) ->
'a list ->
'b list ->
(unit, 'trace) result
val map2 :
when_different_lengths:'trace ->
('a -> 'b -> 'c) ->
'a list ->
'b list ->
('c list, 'trace) result
val rev_map2 :
when_different_lengths:'trace ->
('a -> 'b -> 'c) ->
'a list ->
'b list ->
('c list, 'trace) result
val fold_left2 :
when_different_lengths:'trace ->
('a -> 'b -> 'c -> 'a) ->
'a ->
'b list ->
'c list ->
('a, 'trace) result
val fold_right2 :
when_different_lengths:'trace ->
('a -> 'b -> 'c -> 'c) ->
'a list ->
'b list ->
'c ->
('c, 'trace) result
val for_all2 :
when_different_lengths:'trace ->
('a -> 'b -> bool) ->
'a list ->
'b list ->
(bool, 'trace) result
val exists2 :
when_different_lengths:'trace ->
('a -> 'b -> bool) ->
'a list ->
'b list ->
(bool, 'trace) result
val rev_filter_ok : ('a, 'b) result list -> 'a list
val filter_ok : ('a, 'b) result list -> 'a list
val rev_filter_error : ('a, 'b) result list -> 'b list
val filter_error : ('a, 'b) result list -> 'b list
val rev_filter_left : ('a, 'b) Either.t list -> 'a list
val filter_left : ('a, 'b) Either.t list -> 'a list
val rev_filter_right : ('a, 'b) Either.t list -> 'b list
val filter_right : ('a, 'b) Either.t list -> 'b list
val rev_partition_map :
('a -> ('b, 'c) Either.t) ->
'a list ->
'b list * 'c list
val partition_map : ('a -> ('b, 'c) Either.t) -> 'a list -> 'b list * 'c list
val rev_partition_result : ('a, 'b) result list -> 'a list * 'b list
val partition_result : ('a, 'b) result list -> 'a list * 'b list
val rev_partition_either : ('a, 'b) Either.t list -> 'a list * 'b list
val partition_either : ('a, 'b) Either.t list -> 'a list * 'b list
val combine_with_leftovers :
'a list ->
'b list ->
('a * 'b) list * ('a list, 'b list) Either.t option
val shuffle : rng:Random.State.t -> 'a list -> 'a list
val to_seq : 'a list -> 'a Seq.t
val of_seq : 'a Seq.t -> 'a list
val init_ep :
when_negative_length:'error ->
int ->
(int -> ('a, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t) ->
('a list, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t
val filter_ep :
('a -> (bool, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t) ->
'a list ->
('a list, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t
val filteri_ep :
(int -> 'a -> (bool, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t) ->
'a list ->
('a list, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t
val partition_ep :
('a -> (bool, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t) ->
'a list ->
('a list * 'a list, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t
val partition_map_ep :
('a ->
(('b, 'c) Either.t, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t) ->
'a list ->
('b list * 'c list, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t
val iter_ep :
('a -> (unit, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t) ->
'a list ->
(unit, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t
val iteri_ep :
(int -> 'a -> (unit, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t) ->
'a list ->
(unit, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t
val map_ep :
('a -> ('b, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t) ->
'a list ->
('b list, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t
val mapi_ep :
(int -> 'a -> ('b, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t) ->
'a list ->
('b list, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t
val rev_map_ep :
('a -> ('b, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t) ->
'a list ->
('b list, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t
val rev_mapi_ep :
(int -> 'a -> ('b, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t) ->
'a list ->
('b list, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t
val filter_map_ep :
('a -> ('b option, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t) ->
'a list ->
('b list, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t
val concat_map_ep :
('a -> ('b list, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t) ->
'a list ->
('b list, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t
val for_all_ep :
('a -> (bool, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t) ->
'a list ->
(bool, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t
val exists_ep :
('a -> (bool, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t) ->
'a list ->
(bool, 'error Tezos_error_monad.TzTrace.trace) result Lwt.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>