OxL Reference

method Map.values

The values, in the order of their keys.

Example:

oxl✓ checked in CI
fn main() io {
  let m = {"b": 2, "a": 1}
  print("{m.values()}")
}
Output
[2, 1]

The values, in the iteration order of the map.

Example:

oxl✓ checked in CI
fn main() io {
  let m: Map<str, i32> = {"a": 1}
  print("{m.values()}")
}
Output
[1]
pub(api) fn values() -> List<V>

Complexity. O(n).

Since. 1.0.0-beta

Returns

List<V>

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/collections.oxl:908

See also