-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
There is a chance for multiplicationDirectiveTile to fail in certain cases due to this line:
| val scalarSum: Double = dbls.reduce(_ * _) + ints.reduce(_ * _) |
The reason why this would be fail is that it is not possible to reduce an empty collection in Scala, so if either dbls or ints is empty then the method will fail.
Metadata
Metadata
Assignees
Labels
No labels