Create a ramp vector

ramp  list (array)

Create a new immutable ramp vector from args. Indexes always return first or last value if out of bounds.

Introduced in v2.6

Examples

# Example 1

(ramp 1, 2, 3)[0]



#=> 1



# Example 2

(ramp 1, 2, 3)[1]



#=> 2



# Example 3

(ramp 1, 2, 3)[2]



#=> 3



# Example 4

(ramp 1, 2, 3)[3]



#=> 3



# Example 5

(ramp 1, 2, 3)[1000]



#=> 3



# Example 6

(ramp 1, 2, 3)[-1]



#=> 1



# Example 7

(ramp 1, 2, 3)[-1000]



#=> 1