Skip to content

Commit

Permalink
Another fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ppanopticon committed Jan 18, 2024
1 parent ad08212 commit e5d4cdc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class ValueList(val value: Array<PublicValue>): Expression() {
is LongArray -> list.filterIsInstance<LongArray>().map { LongVectorValue(it) }
is FloatArray -> list.filterIsInstance<FloatArray>().map { FloatVectorValue(it) }
is DoubleArray -> list.filterIsInstance<DoubleArray>().map { DoubleVectorValue(it) }
is PublicValue -> list.filterIsInstance<PublicValue>()
else -> throw IllegalArgumentException("Cannot create ValueList from list of type ${list.first().javaClass.simpleName}.")
}.toTypedArray())

Expand Down

0 comments on commit e5d4cdc

Please sign in to comment.