Skip to content

Instantly share code, notes, and snippets.

@fitomad fitomad/array_replace.swift Secret
Created Nov 19, 2018

What would you like to do?
// Parece que hemos cometido un error y hemos añadido al Capitán Chandal (de la tienda cómics)
// como miembro de CallTech.
// Vamos a sustituir esos 2 elementos por los buenos
let compisDeVerdadDeLaUniversidad = [ "Barry Kripke", "Leslie Winkle" ]
personajes.replaceSubrange(11 ... 12, with: compisDeVerdadDeLaUniversidad)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.