setFromArray