How to store ordered data in arrays – Swift for Complete Beginners

preview_player
Показать описание
Other videos in the Complex Data section:

1. How to store ordered data in arrays: This video

Рекомендации по теме
Комментарии
Автор

Hi Paul! The dog "interruptions" are actually a brilliant addition to the videos!

1. They become variable rewards in and of themselves, causing motivation: "Will I see the dogs in this video? Maybe… I need to keep watching!"
2. They offer comic relief. This gives the brain a quick break and makes one remember, "It's going to be ok. I'm going to get this. The dogs are getting treats. All is well."

Loving these lessons! Thank you!!!

manwithllama
Автор

first i want to say i love this series, and also how much he loves his dogs lol

panda
Автор

Hi Paul! Happy New Years! I’m loving your “100 Days of SwiftUI”, and I’m going through it on Swift Playground. Here’s a good way to illustrate the sorted & reversed array functionality using your example:

print (presidents)
print (presidents[1])
print (presidents.sorted())
print(presidents.sorted()[1])
print (presidents.reversed())
print (presidents.reversed()[1])

mklcolvin
Автор

Hey Paul !

I was wondering, what if you wanted to capture the the value of the variables in the reversed way, how would you do that ? Just out of pure curiosity

mauroabrantes
Автор

This is a vast improvement, thank you so much!!

mx.stoneheart
Автор

What is the empty () brackets for in Array<String>()?

Llcooliovicet
Автор

I am getting the error ”Expressions are not allowed at the top level”

Llcooliovicet
Автор

Lana, Pam, Ray, and Sterling, I see you're a man of taste also ;) (phrasing)

hexRQP
Автор

I typed print(cities.sorted()) and i got an error saying cannot call value of non function type '()'

autofocus
Автор

Here you got carried away little bit with methods. You kinda jumped into them without explaining anything. Other than than, love the course so far.

First.Last.
Автор

let samoyeds = 2
let treats = samoyeds * 5
print("\(treats) treats per day")

sjiaod
welcome to shbcf.ru