Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby find max value in array

# using .max for arrays
arr = [1,3,4,5]
arr.max
 
PREVIOUS NEXT
Tagged: #ruby #find #max #array
ADD COMMENT
Topic
Name
5+6 =