for(auto&&p:ps){// Iterating on ps only works for Write but flatten cannot be Read/Write anyway
s=s
.record()
...
...
@@ -1004,7 +1004,7 @@ void doGuiExample() {
});
#else
// More expressive design similar to Python list comprehensions that does not work by default for Read/Write
QModelWriter<>(&customModel).sequence().bind(persons,+[](QList<Person>&t,Seq<Cursor>&&s)->Seq<Cursor>&&{// See https://stackoverflow.com/questions/18889028/a-positive-lambda-what-sorcery-is-this
QModelWriter<>(&customModel).sequence().bind(persons,+[](QList<Person>&t,Seq<Cursor>&&s)->Seq<Cursor>{// See https://stackoverflow.com/questions/18889028/a-positive-lambda-what-sorcery-is-this
for(auto&&person:t){// Read would require looping while !s.item()