vec: iter + global: snapshot

This commit is contained in:
nym21
2025-04-27 00:21:21 +02:00
parent d55478da54
commit bdc3c19163
10 changed files with 389 additions and 155 deletions

View File

@@ -72,6 +72,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
})?;
dbg!(vec.collect_signed_range(Some(-5), None)?);
vec.push(vec.len() as u32);
dbg!(vec.get_last());
dbg!(vec.into_iter().map(|v| v).collect::<Vec<_>>());
}
Ok(())