Jump to content

Wikifunctions:Community portal

From Wikifunctions

Welcome to the community portal for Wikifunctions!

This is the central place to document Wikifunctions's to-do lists and ongoing project work. [To-do!]

The catalogue of functions is a good place to start.

For discussions, see Wikifunctions:Project chat.

Noticeboards

Task centre

Perennial tasks

Tasks listed by users

Example:
Done. Thanks for pointing that out! Example (talk · contribs)

[signing to enable reply link:--GrounderUK (talk) 11:27, 6 May 2024 (UTC)[reply]

I had another go at implementing 21809 and again failed, and now I'm thinking I've misunderstood how evaluation works since I wouldn't expect Z882(Z7(...), Z7(...)) to ever appear. In addition to fixing it, would someone please explain my mistake? YoshiRulz (talk) 22:17, 19 July 2025 (UTC)[reply]
I don’t think Z17534 actually works. When it calls Z882, it passes the function calls to Z16829 as the required types, but these calls are not evaluated, so Z882 returns a generic type function call that contains function calls to Z16829. This might work in theory, but the function calls refer to argument references that cannot be resolved when the Typed pair’s type is subsequently generated by the call to Z882. At least, I think that’s where the invalid key error is coming from. When I used Try this function on Z882 with a call to Z16829 as one of the required types, it seemed to work as I would expect (with no call to Z16829 in the result). So, yeah… looks like a bug. GrounderUK (talk) 09:51, 20 July 2025 (UTC)[reply]
Oh, it never occurred to me that the problem could be with 16829. Could you make an alternate implementation for 17534 which doesn't have that, since the function's return type is a pair of Z1s anyway? (The values returned by such an implementation would violate a condition of 19586, but I think most tests would continue working because the expected values would be made the same way.) YoshiRulz (talk) 10:45, 20 July 2025 (UTC)[reply]
Not sure. I think the problem lies with Z17534 relying on something that doesn’t actually happen. And the user interface doesn’t support Typed pairs correctly. Have you considered implementing your function as a Typed list of Typed lists? GrounderUK (talk) 12:32, 20 July 2025 (UTC)[reply]
I guess I should so that it's at least usable for other compositions. edit: I can't while the tests are connected. YoshiRulz (talk) 14:49, 20 July 2025 (UTC)[reply]
Done GrounderUK (talk) 15:15, 20 July 2025 (UTC)[reply]
Z21396 fails in an edge case, which I've just added a test for. It needs to be implemented as Z876(Z10000, K1, ""). YoshiRulz (talk) 20:18, 25 July 2025 (UTC)[reply]
Done GrounderUK (talk) 20:45, 25 July 2025 (UTC)[reply]
Hi, I would like to request to connect implementation and the tests for both Indonesian cardinal (Z18546) and Indonesian ordinal from natural number (Z26821). Thank you! NikolasKHF (talk) 14:56, 29 July 2025 (UTC)[reply]
I see that Z18546 has a failed testcase. Dv103 (talk) 14:58, 29 July 2025 (UTC)[reply]
Yes, the 100 should return "seratus" instead of "satu ratus". Besides, I also notice that it will resulted "satu ribu" for 1000 instead of "seribu". I am currently trying to fix the issue and will update if I already solve it. Sorry and thanks in advance. NikolasKHF (talk) 16:12, 29 July 2025 (UTC)[reply]
I have revised the code for Indonesian cardinal (Z18546) and have added additional test cases. Please kindly check NikolasKHF (talk) 16:57, 29 July 2025 (UTC)[reply]
Done Connected both functions (and the new testcases).
As a side note, for some reason the testcases you created didn't have the input (I had to add it). What language is your Wikifunctions interface? In which format did you write the numeric values? Does Z14290 support the format you were using? Dv103 (talk) 17:02, 29 July 2025 (UTC)[reply]
Ah sorry, I think I forgot to include the input on the testcases. I use Indonesia as the Wikifunctions interface. When I try to check using Z14290 it looks like the function support the Indonesia format. While at it, I would like to ask, on the last two test cases in Z26821, I found that they are fail due to no connected implementation yet (Z503). I have purge the page but it seems the error remains. Is it only in my machine? Thank you in advanceNikolasKHF (talk) 17:15, 29 July 2025 (UTC)[reply]
I believe those were globally cached errors. The cache is now refreshed and showing the test cases as passed. Please reply if this is not what you see now. GrounderUK (talk) 17:39, 29 July 2025 (UTC)[reply]
I understand. It's fixed now. Thank you very much NikolasKHF (talk) 23:29, 29 July 2025 (UTC)[reply]
And Z26821 has failed all 3 test cases. ~/Bunnypranav:<ping> 15:01, 29 July 2025 (UTC)[reply]
This is because Z18546 isn't connected. Dv103 (talk) 15:02, 29 July 2025 (UTC)[reply]
Ah, my bad. Didn't notice the relation. ~/Bunnypranav:<ping> 16:29, 29 July 2025 (UTC)[reply]