1 | static O cget_x(O c, S field) { |
2 | int i = field.indexOf('.'); |
3 | if (i < 0) ret cget(c, field); |
4 | ret cget( |
5 | cget(c, substring(field, 0, i)), |
6 | substring(field, i+1)); |
7 | } |
Began life as a copy of #1006649
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: | #1006652 |
Snippet name: | cget_x - allows "field.subfield" |
Eternal ID of this version: | #1006652/1 |
Text MD5: | de283a963c7219cbe02b658fa4ce4a9d |
Author: | stefan |
Category: | javax / concepts |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-01-25 18:07:50 |
Source code size: | 179 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 434 / 473 |
Referenced in: | [show references] |