25 lines
523 B
C++
25 lines
523 B
C++
#include <QCoreApplication>
|
|
#include <QDebug>
|
|
#include <xmlconfig.h>
|
|
#include <xmlprojectmanager.h>
|
|
#include <QDebug>
|
|
|
|
#include "opstream.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QCoreApplication a(argc, argv);
|
|
|
|
|
|
QList<QString> list;
|
|
list << "a" << "b" << "c" << "d";
|
|
|
|
|
|
qDebug() << Operate::OpStream<QString>(list)
|
|
.filter([](const QString &it){ return it > QString("b"); })
|
|
.select<QString>([](const QString n)->QString{ return n + "xx"; }).toList();
|
|
|
|
|
|
return a.exec();
|
|
}
|