static Concept conceptFromMatches(Class<? extends Concept> cClass, Matches m) { Concept c = cnew(cClass); S order = toStringOpt(getOpt(cClass, "_fieldOrder")); L<S> fields; if (order != null) fields = splitAtSpace(order); else fields = asList(asTreeSet(conceptFields(c))); if (l(fields) != l(m.m)) fail(struct(fields) + " / " + struct(m.m)); for i over fields: cset(c, fields.get(i), parseToOptions(m.unq(i))); ret c; }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005510 |
Snippet name: | conceptFromMatches |
Eternal ID of this version: | #1005510/1 |
Text MD5: | 628d111b2a14883d7602f6621cc93bcc |
Author: | stefan |
Category: | javax / concepts / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-11-24 00:25:20 |
Source code size: | 466 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 564 / 576 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |