TomT0m added a comment.
I implemented something like that in https://www.wikidata.org/wiki/Module:Iterators without the coroutine module. There is also the Luafun library https://github.com/luafun/luafun that does functional stuffs, totally usable in as a Mediawiki module : https://www.wikidata.org/wiki/Module:Luafun without the coroutine module. My own code is not perfect, as the iterators are statefull however. TASK DETAIL https://phabricator.wikimedia.org/T212843 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: TomT0m Cc: TomT0m, Yurik, Vesihiisi, ArthurPSmith, Iniquity, Tobias1984, Theklan, Fnielsen, RexxS, Pamputt, Mike_Peel, MarcoSwart, Geertivp, Liuxinyu970226, Addshore, Jdforrester-WMF, deryckchan, Lydia_Pintscher, Lea_Lacroix_WMDE, darthmon_wmde, DannyS712, Nandana, Mringgaard, Lahi, Gq86, Cinemantique, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, jberkel, Psychoslave, Wikidata-bugs, aude, GPHemsley, Shizhao, Nemo_bis, Darkdadaah, Mbch331, Ltrlg, Krenair
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
