1 | sclass FG extends F1 {
|
2 | F1 f, g; |
3 | |
4 | *() {}
|
5 | *(F1 *f, F1 *g) {}
|
6 | |
7 | O get(O o) { ret f.get(g.get(o)); }
|
8 | } |
9 | |
10 | static O fg(fO f, fO g) {
|
11 | ret FG(f1(f), f1(g)); |
12 | } |
13 | |
14 | static O fg(fO f, fO g, fO h) {
|
15 | ret fg(f, fg(g, h)); |
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: | #1008453 |
| Snippet name: | fg - combine two functions - f(g(o)) [or three] |
| Eternal ID of this version: | #1008453/5 |
| Text MD5: | 271ae3defc76d60d0eb3eb631c706fd4 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-10-11 21:41:19 |
| Source code size: | 235 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 762 / 818 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |