Steps to replicate the issue (include links if applicable):
- go to https://www.wikifunctions.org/wiki/Special:RunFunction and build the following function call:
Z14038/sum the elements of a list of natural numbers( Z873/map function( Z24809/number of bytes for code point in UTF-8, Z22717/string to codepoint list("Motörhead")))
The ZObject with the call is below.
{"Z1K1":"Z7","Z7K1":"Z14038","Z14038K1":{"Z1K1":"Z7","Z7K1":"Z873","Z873K1":"Z24809","Z873K2":{"Z1K1":"Z7","Z7K1":"Z22717","Z22717K1":"Motörhead"}}}What happens?:
The result is 0
What should have happened instead?:
The result should be 10 (I think)
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
I thought maybe it is because Z873 returns a Z881/typed list(Z1/Object) and Z14038/sum needs a Z881/typed list(Z13518/natural number)
So I created (with the help of 99of9) Z24846/map to natural number, but replacing Z873 with Z24846 in the function call above doesn't make a difference. Here's that one as a ZObject:
{"Z1K1":"Z7","Z7K1":"Z14038","Z14038K1":{"Z1K1":"Z7","Z7K1":"Z24846","Z24846K1":"Z24809","Z24846K2":{"Z1K1":"Z7","Z7K1":"Z22717","Z22717K1":"Motörhead"}}}