is there an equivalent to javascript's spread operator in solidity?
I am hoping to do something like this
struct Book {
string name;
string writer;
string genre;
string publisher;
}
string[] memory bookInfo = ["bookName", "bookAuthor", "bookGenre", "bookPublisher"];
Book book1 = Book(...bookInfo);
Or is there a way to pass a struct to a constructor in solidity?