Results.Collection: Collection utilities
Exported members
Results.Collection.try_first — Methodtry_first(s::AbstractString, n::Integer)::Option{AbstractString}Try to get the first n chars from a string.
Results.Collection.try_first — Methodtry_first(c)::OptionTry to get the first element from a collection. Uses Base.firstindex under the hood.
Results.Collection.try_get — FunctionTry to get a value from an array or collection.
Results.Collection.try_get — Methodtry_get(s::AbstractString, i::Integer)::Option{AbstractChar}Try to retrieve index index from a string. Uses Base.checkbounds and Base.isvalid under the hood.
Results.Collection.try_get — Methodtry_get(collection, index...)::OptionFallback method for try_get. Relies on exception-handling, so it is slower than the specialized methods.
Results.Collection.try_get — Methodtry_get(t::NamedTuple, k::Union{Integer, Symbol})::OptionTry to retrieve member k from a Base.NamedTuple.
Results.Collection.try_get — Methodtry_get(a::AbstractArray{T}, index::Integer...)::Option{T}Try to retrieve index index from an array. Uses Base.isassigned under the hood.
Results.Collection.try_get — Methodtry_get(d:AbstractDict{>:K, V}, k::K)::Option{V}Try to retrive key k from a dictionary.
Results.Collection.try_last — Methodtry_last(c)::OptionTry to get the last element from a collection.
Results.Collection.try_peek — Functiontry_peek(iter; state=missing)::OptionTry to get the next value from an iterator. If state is not missing, use it in the call to iterate.
Results.Collection.try_pop! — FunctionTry to pop a value from a collection.
Results.Collection.try_pop! — Methodtry_pop!(iter::Iterators.Stateful)::OptionTry to pop a value from a Stateful iterator.
Results.Collection.try_pop! — Methodtry_pop!(d::AbstractDict{>:K, V}, key::K)::Option{Pair{K, V}}Try to pop a key-value pair from a dictionary.
Results.Collection.try_pop! — Methodtry_pop!(a::AbstractVector)::Option{T}Try to pop a value from a vector.
Results.Collection.try_pop! — Methodtry_pop!(d::AbstractDict{>:K, V}, key::K)::Option{V}Try to pop the value corresponding to key key from a dictionary.