Skip to contents

Coerce to a positive integer.

Usage

type.positive_integer(x)

Arguments

x

any vector

Value

the input as a positive integer, error if this would involve data loss.