3 ms·
Swift has them. They can even be recursive. See https://docs.swift.org/swift-book/LanguageGuide/Enumerations.html https://docs.swift.org/swift-book/LanguageGuid
by KerrAvon 4y ago
Swift has them. They can even be recursive. See https://docs.swift.org/swift-book/LanguageGuide/Enumerations.html https://docs.swift.org/swift-book/LanguageGuide/Enumerations...
I know there are ways to do it in C++ that are clunky but work.