func accepted(_ status: Int) -> Bool { (200...299).contains(status) } print([199, 200, 204, 300].map(accepted))