Libraryless. Click here for Pure Java version (40L/1K).
1 | static TokCondition toTokCondition(ITokCondition condition) {
|
2 | ret condition == null ?: condition instanceof TokCondition ? (TokCondition) condition : new TokCondition {
|
3 | public bool get(L<S> tok, int i) {
|
4 | ret condition.get(tok, i); |
5 | } |
6 | }; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030732 |
| Snippet name: | toTokCondition |
| Eternal ID of this version: | #1030732/3 |
| Text MD5: | c76cdc998c4c1e68c7dc9fc7bda983fd |
| Transpilation MD5: | 8e97f7237a1a7370e22f39e569f1bb66 |
| Author: | stefan |
| Category: | javax / tokenizing |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-01 23:24:59 |
| Source code size: | 261 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 435 / 557 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |