SPB Git

spb/os-vault Public

Self-custody, multi-chain crypto wallet for macOS. One recovery phrase, six chain families, zero API keys — nothing leaves your Mac.

Swift 96% Shell 3.4% Makefile 0.6%
246 B · 9 lines swift
Raw Blame History
1import Foundation23public extension Collection {4    /// Returns the element at the specified index if it is within bounds, otherwise nil.5    subscript(safe index: Index) -> Element? {6        indices.contains(index) ? self[index] : nil7    }8}9