Enums wraps the pattern of having a status field constrained to just a few options.
Enumty zawija wzorzec posiadania pola statusu ograniczonego do kilku opcji.
Note - Enums can be declared as their own or inside a class.
Uwaga: teksty stałe mogą zostać uznane za własne lub wewnątrz klasy.
Enums are particularly useful inside switch/case blocks, particularly because Swift knows all the values your enum can have so it can ensure you cover them all.
Enumy są szczególnie przydatne w blokach switch/case dlatego, że język Swift zna wszystkie możliwe wartości Twojego enuma, więc może się upewnić, że pokryjesz wszystkie jego przypadki.
Enums with additional values One of the most powerful features of Swift is that enumerations can have values attached to them that you define.
Jedną z najpotężniejszych cech języka Swift, jest fakt, że typy wyliczeniowe mogą posiadać przypisane im wartości, które to Ty możesz zdefiniować.
Enums are a simple list of values. A typical example is an enum for days of the week. The options of an enum are called Enum Literals. Like datatypes they can not have relationships to classes but classes can have relationships to them.
Enum to lista wartości. Typowym przykładem są dni tygodnia. Podobnie jak typy danych, nie mogą mieć relacji do klas, ale klasy mogą mieć relacje do nich.
The values in this enumerated list are called enums.
Wartości w tej wyliczeniowej liście nazywane są teksty stałe.
In F#, enumerations, also known as enums, are integral types where labels are assigned to a subset of the values.
W F , wyliczenia, znany również jako teksty stałe, stanowią integralne typy gdzie etykiety są przypisane do podzbioru wartości.
Fix build glitch with enums file (Volker Sobek)
Napraw błąd konstrukcyjny z plikiem podsumowania (Volker Sobek)
Potentieel gevoelige of ongepaste informatie
Er worden alleen voorbeelden gegeven om u te helpen het woord of de woordcombinatie waarop u hebt gezocht, te vertalen. Deze worden niet door ons geselecteerd of gevalideerd en kunnen ongepaste taal bevatten. Wij vragen u melding te maken van voorbeelden die dienen te worden aangepast of verwijderd. Vertalingen met grof of informeel taalgebruik worden meestal rood of oranje gemarkeerd.