Method: Array#squared

Defined in:
lib/openc3/core_ext/array.rb

#squaredObject

return [Array] A new array with each value of the original squared



248
249
250
# File 'lib/openc3/core_ext/array.rb', line 248

def squared
  self.map { |value| value * value }
end