static Collector importCollector(O collector) { ret new Collector { bool add(O o) { ret isTrue(call(collector, 'add, o)); } bool full() { ret isTrue(call(collector, 'full)); } bool contains(O o) { ret isTrue(call(collector, 'contains, o)); } }; }
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: | #1022593 |
| Snippet name: | importCollector - from another realm |
| Eternal ID of this version: | #1022593/3 |
| Text MD5: | e48fc1ca7b35daf7860763e5513a2e03 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-03-23 15:26:19 |
| Source code size: | 268 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 439 / 478 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |