File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -400,6 +400,18 @@ namespace List {
400
400
401
401
list.clear ();
402
402
args.first ().depthCopyAssign (list);
403
+
404
+ return ZVariant ();
405
+ }
406
+
407
+ ZVariant last (const QList<ZVariant> &args)
408
+ {
409
+ return args.first ().toList ().last ();
410
+ }
411
+
412
+ ZVariant first (const QList<ZVariant> &args)
413
+ {
414
+ return args.first ().toList ().first ();
403
415
}
404
416
}// end namespace List
405
417
@@ -450,5 +462,7 @@ void init()
450
462
REGISTER_FUNCTION (ZVariant::List, List::replace);
451
463
REGISTER_FUNCTION (ZVariant::List, List::join);
452
464
REGISTER_FUNCTION (ZVariant::List, List::clear);
465
+ REGISTER_FUNCTION (ZVariant::List, List::last);
466
+ REGISTER_FUNCTION (ZVariant::List, List::first);
453
467
}
454
468
}// end namespace ZBase
You can’t perform that action at this time.
0 commit comments