StackOverflow Questions for Tag: generic-function

jimmyorpheus
jimmyorpheus

Reputation: 325

Why is there no type-error when assigning a conditional return-type of string to a number?

Score: 1

Views: 75

Answers: 1

Read More
Niek de Klein
Niek de Klein

Reputation: 8834

How to have different input types for the same function?

Score: 8

Views: 17941

Answers: 3

Read More
Vinn
Vinn

Reputation: 1191

Understanding Generic Functions in Common Lisp?

Score: 3

Views: 1075

Answers: 3

Read More
Vinn
Vinn

Reputation: 1191

Understanding CLOS :after and primary methods

Score: 2

Views: 374

Answers: 1

Read More
amirhossein
amirhossein

Reputation: 39

Abstract method with single-dispatch generic functions

Score: 2

Views: 1172

Answers: 1

Read More
delphie
delphie

Reputation: 1

How to make a version of LINQ OrderBy, which uses a Radix Sort for Dates

Score: 0

Views: 49

Answers: 0

Read More
Markstar
Markstar

Reputation: 873

How to pass different `rapidjson::GenericObject`s to function?

Score: 0

Views: 455

Answers: 1

Read More
Levan Gharibashvili
Levan Gharibashvili

Reputation: 73

Typing for a Python function that takes a generic class and returns a specific instance of that class

Score: 1

Views: 1085

Answers: 0

Read More
Xavi
Xavi

Reputation: 67

List function max element treating empty container in c++

Score: 1

Views: 179

Answers: 1

Read More
Xavi
Xavi

Reputation: 67

Std::istream& as function parameter

Score: 0

Views: 65

Answers: 1

Read More
Ratatouille
Ratatouille

Reputation: 1492

Model responsibility vs Generic Function

Score: 0

Views: 49

Answers: 1

Read More
AshBadCoder
AshBadCoder

Reputation: 47

TypeScript how associate enam with union types and get returned object property type?

Score: 1

Views: 163

Answers: 1

Read More
deonardo_licaprio
deonardo_licaprio

Reputation: 318

How to write generic function that acts differently depending on passed pandas column dtype

Score: 2

Views: 169

Answers: 1

Read More
azwier
azwier

Reputation: 163

Typescript - How do I narrow type possibilities of a generic type in a switch statement?

Score: 7

Views: 2089

Answers: 3

Read More
yaugenka
yaugenka

Reputation: 2871

Kotlin generic function return type does not conform to declared nullability

Score: 1

Views: 371

Answers: 4

Read More
yaugenka
yaugenka

Reputation: 2871

Kotlin class generic type infered as nullable

Score: 1

Views: 208

Answers: 1

Read More
Sir
Sir

Reputation: 347

Is there any compile-time (or sth similar) function in C that will give me format specifier for any primitive type?

Score: 1

Views: 32

Answers: 1

Read More
sd_master92
sd_master92

Reputation: 13

How to pass a non-nullable type to a function with a nullable parameter?

Score: 1

Views: 1396

Answers: 4

Read More
Rainer
Rainer

Reputation: 8691

Execute code after `UseMethod()` in generic function in R?

Score: 1

Views: 583

Answers: 2

Read More
rostamiani
rostamiani

Reputation: 3265

How can I make a generic function that accepts a specific property of the returning custom interface

Score: 0

Views: 82

Answers: 0

Read More
PreviousPage 1Next