plurality

Chooses between two values based on if the passed numeric value is one or many.

pure @safe @nogc nothrow
T
plurality
(
T
N
)

Parameters

num N

Number of items.

singular T

Singular value.

plural T

Plural value.

Return Value

Type: T

Either the singular or the plural form, based on the value of num.

Meta