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

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

Paul Hudson

3 года назад

13,796 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@mx.stoneheart
@mx.stoneheart - 03.10.2021 23:17

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

Ответить
@manwithllama
@manwithllama - 25.11.2021 09:39

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!!!

Ответить
@mauroabrantes5948
@mauroabrantes5948 - 21.12.2021 01:22

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

Ответить
@mklcolvin
@mklcolvin - 01.01.2022 22:31

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])

Ответить
@ClintonSiegel
@ClintonSiegel - 26.07.2022 02:34

What a great dog!

Ответить
@Jaroshevskii
@Jaroshevskii - 10.01.2023 03:29

Your dog's is a pretty 😍

Ответить
@autofocus4556
@autofocus4556 - 18.02.2023 06:13

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

Ответить
@sjiaod
@sjiaod - 14.03.2023 22:22

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

Ответить
@丁昌
@丁昌 - 29.03.2023 07:07

I like your dog

Ответить
@alexandresantosal
@alexandresantosal - 29.04.2023 21:31

Muito obrigado pelas lições...

Ответить
@t0mmx
@t0mmx - 08.07.2023 17:29

Good dogs! 🙏

Ответить
@tenn46
@tenn46 - 23.07.2023 06:24

We don't deserve the British.

Ответить
@NathanBudd
@NathanBudd - 14.10.2023 21:25

I'm missing why `reversedPresidents[0]` doesn't return "Biden".

I get "No exact matches in call to subscript".

Ответить
@hexRQP
@hexRQP - 28.01.2024 09:21

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

Ответить
@panda32933
@panda32933 - 27.06.2024 22:53

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

Ответить
@First.Last.99
@First.Last.99 - 20.07.2024 09:22

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.

Ответить
@ZeroTorySeats
@ZeroTorySeats - 22.08.2024 17:20

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

Ответить
@ZeroTorySeats
@ZeroTorySeats - 22.08.2024 17:25

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

Ответить
@gbdnz
@gbdnz - 11.11.2024 23:53

Very good!

Ответить