Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

foor-loop swift #52

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ <h4>¿Quienes somos?</h4>
<li class="list-group-item"><a href="https://github.com/elizarv">Elizabeth Ramírez (elizarv)</a></li>
<li class="list-group-item"><a href="https://github.com/ginoamaury">Gino Amaury</a></li>
<li class="list-group-item"><a href="https://github.com/mavega998">Michael A. Vega Pabon</a></li>
<li class="list-group-item"><a href="https://github.com/mavega998">Omar Contreras</a></li>
<li class="list-group-item"><a href="https://github.com/Nathalialsina">Max</a></li>
<p class="for-contributors lead">El próximo puedes ser tu. Contribuye con este sitio :) </p>
</ul>
Expand Down
1 change: 1 addition & 0 deletions langs/Swift/data-types
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

23 changes: 23 additions & 0 deletions langs/Swift/for-loop
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// imprimiría hasta 9

for i in 0 ..< 10 {
print (i) // incrementaré uno con cada iteración del ciclo for
}

// imprimiría hasta 10
for i in 0 ... 10 {
print (i)
}

// iterar a través de una matriz
let names = ["Bob", "Carl", "Joe", "Dory" ]
for name in names {
print (name)
}

// nodos en una escena del kit sprite (no funcionará en Playgrounds)
for node in self.children {
if (node.name == "Ball") {
//hacer algo
}
}