Check if an argument is in the closed set [lower, upper]

Share:

Description

Function to check that a value x is between two values.

Usage

1
isInBounds(x, lower, upper)

Arguments

x

The value to check.

lower

The lower bound.

upper

The upper bound.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.