1 | sS n2_generic(S n, S singular) { |
2 | ret n2_generic(n, singular, singular + "s"); |
3 | } |
4 | |
5 | sS n2_generic(S n, S singular, S plural) { |
6 | if (!isInteger(n)) ret n + " " + plural; |
7 | ret n2(parseInt(n), singular, plural); |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021306 |
Snippet name: | n2_generic - takes a string |
Eternal ID of this version: | #1021306/2 |
Text MD5: | 3eef2cac4bcb10cbf2345e1cfbf64a26 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-08 13:46:21 |
Source code size: | 218 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 285 / 315 |
Version history: | 1 change(s) |
Referenced in: | [show references] |