Associated function in collections::set · HashSet coil-stdlib

HashSet::with_capacity

pub static fn with_capacity(int cap) -> HashSet<T>
Import
use collections::set::{HashSet};
Source: src/collections/set.hy

Create a set with bucket count rounded up to the next power of two (min 8).

Parameters#

NameType
capint

Returns#

HashSet<T>

See also#

↑ ↓ navigate ↵ open