Clean Code posts

Cleanly check if an Index is valid with Swift

Use generic extensions, modules and the Swift stdlib for efficient and reusable index checks. Also useful for library vendors looking to expose a minified API.