StackOverflow Questions for Tag: associated-value

Roman
Roman

Reputation: 1500

Deepest nested associated value (extracted recursively)

Score: 0

Views: 62

Answers: 1

Read More
Alexdrob
Alexdrob

Reputation: 97

Enum with associated values in Core Data

Score: 0

Views: 165

Answers: 1

Read More
user1162328
user1162328

Reputation:

How to make a Swift enum with associated values equatable

Score: 70

Views: 48034

Answers: 6

Read More
soleil
soleil

Reputation: 13135

Swift - find object in array of enums with associated values

Score: 7

Views: 2548

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: 534

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: 64

Answers: 1

Read More
Roi Mulia
Roi Mulia

Reputation: 5906

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: 784

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: 12625

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

Score: 2

Views: 592

Answers: 2

Read More
Aaron Bratcher
Aaron Bratcher

Reputation: 6471

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

Score: 1

Views: 784

Answers: 1

Read More
Isaaс Weisberg
Isaaс Weisberg

Reputation: 2823

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

Score: 1

Views: 119

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: 15296

Assign associated non mutable constant data to enum variants

Score: 0

Views: 349

Answers: 1

Read More
user2434385
user2434385

Reputation: 301

Swift Switch case on enum with Classes

Score: 2

Views: 2269

Answers: 2

Read More
Barrrdi
Barrrdi

Reputation: 1171

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: 7106

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

Score: 34

Views: 17803

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: 365

Answers: 1

Read More
Ruud
Ruud

Reputation: 45

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

Score: 0

Views: 724

Answers: 1

Read More
ShayneFCF
ShayneFCF

Reputation: 1

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

Score: 0

Views: 356

Answers: 1

Read More
PreviousPage 1Next