StackOverflow Questions for Tag: associated-value

Alexdrob
Alexdrob

Reputation: 97

Enum with associated values in Core Data

Score: 0

Views: 157

Answers: 1

Read More
user1162328
user1162328

Reputation:

How to make a Swift enum with associated values equatable

Score: 70

Views: 47569

Answers: 6

Read More
soleil
soleil

Reputation: 13073

Swift - find object in array of enums with associated values

Score: 7

Views: 2517

Answers: 3

Read More
Jack Stodart
Jack Stodart

Reputation: 13

In Rust can you associate a constant value to each enum variant and then collect those values at compile time?

Score: 1

Views: 514

Answers: 1

Read More
Wade Tregaskis
Wade Tregaskis

Reputation: 2018

Avoiding `(())` to explicitly specify an enum's associated value of type Void

Score: 1

Views: 63

Answers: 1

Read More
Roi Mulia
Roi Mulia

Reputation: 5896

Generic Class with Enum with associated values

Score: 1

Views: 78

Answers: 1

Read More
Jay
Jay

Reputation: 99

Enums with Associated Values in Python

Score: 5

Views: 731

Answers: 1

Read More
whaleshark
whaleshark

Reputation: 73

What is a good way to retrieve the associated value from a struct's enum property when the associated value might have multiple possible types?

Score: 0

Views: 31

Answers: 0

Read More
clearlight
clearlight

Reputation: 12615

Is there a way in Swift to get an associated value without using a switch statement?

Score: 2

Views: 546

Answers: 2

Read More
Aaron Bratcher
Aaron Bratcher

Reputation: 6451

Is there a clean way of making an enum with associated value conform to rawRepresentable?

Score: 1

Views: 774

Answers: 1

Read More
Isaaс Weisberg
Isaaс Weisberg

Reputation: 2814

How to declare an `enum` of `enum` that allows for "flattened" `switch` statement?

Score: 1

Views: 116

Answers: 1

Read More
isbjörnen
isbjörnen

Reputation: 11

Python panda multi-index dataframes: How to associate specific columns to a specific value from a new index

Score: 1

Views: 42

Answers: 0

Read More
Avba
Avba

Reputation: 15266

Assign associated non mutable constant data to enum variants

Score: 0

Views: 347

Answers: 1

Read More
user2434385
user2434385

Reputation: 301

Swift Switch case on enum with Classes

Score: 2

Views: 2245

Answers: 2

Read More
Barrrdi
Barrrdi

Reputation: 1161

Using Enums’ associated values to link cases from first Enum to 2nd, then call an associated function value from the CaseIterable second

Score: 0

Views: 94

Answers: 0

Read More
John Montgomery
John Montgomery

Reputation: 7096

Use "or" logic with multiple "if case" statements

Score: 34

Views: 17573

Answers: 4

Read More
Nobadi
Nobadi

Reputation: 231

Swift - Nested enums - how to perform same action on all nested enums with associated values?

Score: 1

Views: 362

Answers: 1

Read More
Ruud
Ruud

Reputation: 45

Cakephp4, how to load associated data in an Entity object?

Score: 0

Views: 712

Answers: 1

Read More
ShayneFCF
ShayneFCF

Reputation: 1

Swift Enum How to conform to a protocol's variables' set & get?

Score: 0

Views: 349

Answers: 1

Read More
Edward Brey
Edward Brey

Reputation: 41648

Associated enum state in SwiftUI

Score: 4

Views: 5730

Answers: 2

Read More
PreviousPage 1Next