Collections

Scala

Scala - Concurrent Collections

• Scala’s concurrent collections provide thread-safe operations without explicit locking, using lock-free algorithms and compare-and-swap operations for better performance than synchronized…

Read more →
Rust

Rust HashMap: Key-Value Collections

HashMap is Rust’s primary associative array implementation, storing key-value pairs with average O(1) lookup time. Unlike Vec, which requires O(n) scanning to find elements, HashMap uses hashing to…

Read more →
Go

Go Arrays: Fixed-Size Collections

Arrays in Go are fixed-size, homogeneous collections where every element must be of the same type. Unlike slices, which are the more commonly used collection type in Go, arrays have their size baked…

Read more →