Skip to contents

Checks if an object contains duplicated elements.

Usage

assert_unique(x)

Arguments

x

An object to be checked.

Value

Throws an error, if any, and returns x invisibly otherwise.

Author

N. Frerebeau