1 | static S ctxCallFunction(S fname, L<S> args) { |
2 | print("Call function: " + fname); |
3 | if (eqic(fname, "tolowercase")) |
4 | ret toLower(first(args)); |
5 | if (eqic(fname, "length")) |
6 | ret lstr(first(args)); |
7 | if (eqic(fname, "firstupper")) |
8 | ret firstToUpper(first(args)); |
9 | if (eqic(fname, "time")) { |
10 | Calendar c = germanCalendar(); |
11 | int s = seconds(c); |
12 | ret hours(c) + " Uhr " + minutes(c) + " und " |
13 | + (s == 1 ? "1 Sekunde" : s + " Sekunden"); |
14 | } |
15 | throw todo("ctx function " + fname); |
16 | } |
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: | #1009003 |
Snippet name: | ctxCallFunction |
Eternal ID of this version: | #1009003/5 |
Text MD5: | e85547b1683c21c8ce42c6ee541342d5 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-07-01 19:06:10 |
Source code size: | 518 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 504 / 546 |
Version history: | 4 change(s) |
Referenced in: | [show references] |