Slot_repr.Range
val create :
min:int ->
count:int ->
t Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
create ~min ~count
creates a full slot range starting at min
, of size count
, i.e, min, min + count - 1
.
create
errors if
min < 0
count < 1
min + count - 1 > max_value
fold f acc range
folds f
over the values of range
, in increasing order.
val fold_es :
('a ->
slot ->
'a Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t) ->
'a ->
t ->
'a Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
fold_es f acc range
folds f
over the values of range
, in increasing order.
val rev_fold_es :
('a ->
slot ->
'a Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t) ->
'a ->
t ->
'a Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
rev_fold_es f acc range
folds f
over the values of range
, in decreasing order.