Kodebits Day 23: Dictionary Defaults
Practice dictionaries with a short swift challenge.
Kodebits Day 22: Null-Aware Operator
The ?? operator returns its left operand if not null, otherwise its right.
Kodebits Day 21: Result Map Value
Practice error handling with a short swift challenge.
Kodebits Day 20: Map getOrPut
Practice collections with a short kotlin challenge.
Kodebits Day 19: Count With Predicate
Practice collections with a short kotlin challenge.
Kodebits Day 18: Optional Chaining
Practice working with optionals in this short Swift challenge.
Kodebits Day 17: Closure Reference Capture
Practice memory management with a short swift challenge.
Kodebits Day 16: Sequence Map Take
Practice collections with a short kotlin challenge.
Kodebits Day 15: Filter Then Sort
Chain collection operations to transform an array concisely.
Kodebits Day 14: runCatching Fallback
Capture failures as values with runCatching and recover cleanly.
Kodebits Day 13: Associated Types
Associated types let protocols model flexible value containers.
Kodebits Day 12: Null-aware Operators
Combine safe access and fallback defaults in Dart.
Kodebits Day 11: Data Class Copy
Use copy() to derive immutable variants in Kotlin.
Kodebits Day 10: Protocol Extension
Default behavior from protocol extensions keeps code small and reusable.
Kodebits Day 9: Collection If
Build a Dart list dynamically with collection-if.
Kodebits Day 8: Result Mapping
Transform a successful Result value using map.
Kodebits Day 7: Null-safe Length
Use Kotlin null safety and the Elvis operator in one small function.
Kodebits Day 6: Guard Optionals
Practice unwrapping optionals safely with guard.