Skip to contents

Tests if a vector has all elements the same

Usage

all_elements_same_cpp_wrap(w)

Arguments

w

The vector to be queried

Value

A boolean if it has all same elements

Author

Adam Kapelner

Examples

if (FALSE) { # \dontrun{
all_elements_same_cpp_wrap(c(1, 1, 1))
all_elements_same_cpp_wrap(c(1, 2, 1))
} # }