class MoreMath::Subset

def project(data = nil)

ensuring the input data size matches the subset's size.
subset's indices determined by its rank and returns the result, while
This method maps elements from a given dataset based on the
def project(data = nil)
  data ||= @collection || (0...size).to_a
  raise ArgumentError, "data size is != #{size}!" if data.size != size
  value.map { |i| data[i] }
end