I have an Array[Float] and I'd like to use the elements of that array to initialize a new object.

In a classic, imperative way, I could of course do simply do:

```
val array: Array[Float] = ...
val rect: Rect = new Rect(Point(array(0), array(1), Size(array(2), array(3))

```

Is there a way to do it in a more functional way using some type of a "map"? Something like this:

```
array => new Rect(Point(_(0), _(1)), Size(_(2), _(3)))

```

I'm trying to parse a CSV file:

```
string.split("\n") map {
  line => line.split(".") map { 
    value => value.trim.toDouble
  } => new Rect(Point(_(0), _(1)), Size(_(2), _(3))) // something like this?
}

```