method Arc.clone
Another pointer to the same value (the count grows by one).
Example:
fn main() io {
let a: Arc<frozen List<i64>> = Arc.new([1, 2])
let b = a.clone()
print("{b.len()}")
}Output
2
pub(api) fn clone() -> Arc<T>Since. 1.0.0-beta
Returns
Arc<T>
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/task.oxl:211