expanding_array
container.expanding_array
expanding_array(T:Any):abstract_array T is[Private constructor][Module base]¶[src]
Type Parameters
Fields
length i64[Redefinition of container.abstract_array.length][Module base]¶[src]
the length of the array
Functions
execute(env_vars option (container.Map String String),feed_stdin option io.path,timeout option time.duration) => outcome tokiwa.process_result[Inherited from Sequence]¶[src]
execute this Sequence of process+args
0.099dev (GIT hash e2d5298d8107bb5fe79600fdb06a49bc75756344)
An expanding array is a persistent data structure that has cumulative O(1)
performance of adding single elements at its end.
WARNING: Due to the high worst-case time for addition, this structure should
not be used in situations when adding a single element repeatedly to the same
instance of `expanding_array`. If the resulting
`expanding_array`'s length is `l`, this will trigger the worst-case
addition time, resulting in cumulative time O(m*l) for adding an element m
times.
This constructor is for internal use only, to create instance of
`expanding_array`, use `(expanding_array T).empty` to create an empty
expanding array instance.