gistlib
other ruby categories
array code snippets in ruby
add an element to the beginning of an array in ruby
create a function that appends text to a string from an input array in ruby
create a matrix in ruby
create an array with every book of the bible in it in ruby
find the average of all elements in an array in ruby
find the first element in an array in ruby
find the greatest common divisor of a list of numbers in ruby
find the kth largest number in a list in ruby
find the kth least common element in an array in ruby
find the kth least frequent element in an array in ruby
find the kth most frequent element in an array in ruby
find the kth smallest number in a list in ruby
find the largest element in an array in ruby
find the least common multiple of a list of numbers in ruby
find the mode of all elements in an array in ruby
find the range of a list of numbers in ruby
find the sum of all elements in an array in ruby
find the variance of a list of numbers in ruby
generate a random array in ruby
get a random element from an array in ruby
get a sample of 5 elements from an array with replacement in ruby
iterate over a list in ruby
join an array of characters into a string in ruby
sort an array in ruby
split a string into an array of characters in ruby
split a string into an array of words in ruby
gistlib
by LogSnag