1 | static S a(S noun) {
|
2 | if (eq(noun, "")) ret "?"; |
3 | ret ("aeiou".indexOf(noun.charAt(0)) >= 0 ? "an " : "a ") + noun;
|
4 | } |
5 | |
6 | static S a(S contents, O... params) {
|
7 | ret hfulltag("a", contents, params);
|
8 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1002377 |
| Snippet name: | a function - format "a kiwi" or "an orange" - also, make HTML link |
| Eternal ID of this version: | #1002377/2 |
| Text MD5: | 3cdd4e1313b02ac74a566eb0adbbb721 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-09-25 02:20:20 |
| Source code size: | 208 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1066 / 1313 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |