Notes & Posts

  • Types & Functions Are Equivalent
  • Traversing an Array in Reverse
  • Swift's 'any' and 'some' Keywords
  • Functional Prefix Sum in Swift
  • Neighbors are Important
  • Simple is Hard
  • Dissatisfaction by Design
  • The Checkbox Conundrum
  • Weirdness of SwiftUI's ForEach Constructor with Ranges
  • Grouping Subviews for Accessible Collection View Cells

Swift

← Notes & Posts

Types & Functions Are Equivalent

Calendar June 10, 2026
Coding
Swift, Functional Programming
How a type and a function can be equivalent in Swift — declaring the same thing as a struct or as a function returning closures.

Traversing an Array in Reverse

Calendar August 4, 2025
Coding
Swift
Iterating a Swift array in reverse: comparing reversed() ranges against stride for clarity and performance.

Swift's 'any' and 'some' Keywords

Calendar May 1, 2025
Coding
Swift
What Swift’s ‘any’ and ‘some’ keywords actually do under the hood, and when to reach for each.

Functional Prefix Sum in Swift

Calendar April 26, 2025
Coding
Swift
Computing a prefix sum in Swift functionally with reduce(into:), compared to a plain loop.
  • Categories
    • Coding 8
    • Life 2
  • Tags
    • Functional Programming 1
    • Swift 4
    • Software Engineering 1
    • Tooling 1
    • SwiftUI 1
    • Accessibility 1