Function in collections coil-stdlib

collect_ints_inclusive

fn collect_ints_inclusive(RangeInclusive<int> r) -> Vec<int>
Import
use collections::{collect_ints_inclusive};
Source: src/collections.hy

Returns the values of the inclusive range a..=b as a Vec<int>.

Parameters#

NameType
rRangeInclusive<int>

Returns#

Vec<int>

See also#

  • Vec
  • sort: Returns a sorted copy of arr, in ascending order.
  • sort_by: Returns a copy of arr sorted by the value key gives each element, in ascending order.
  • reverse: Returns a copy of arr in reverse order.
  • collect_ints: Returns the values of the range a..b as a Vec<int>.
↑ ↓ navigate ↵ open