Libraryless. Click here for Pure Java version (2482L/16K).
static LS firstNCountingDollarVarsNotInSet(int n, Set<S> set) { new LS out; int i = 0; while (l(out) < n) { S var = "$" + ++i; if (!contains(set, var)) out.add(var); } ret out; }
Began life as a copy of #1028811
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1028828 |
| Snippet name: | firstNCountingDollarVarsNotInSet |
| Eternal ID of this version: | #1028828/4 |
| Text MD5: | dde79cbcc94109017a9b6410fe3f775c |
| Transpilation MD5: | 840a955ff1fcd4cbeefd04c33de2e201 |
| Author: | stefan |
| Category: | eleu / nl |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-07-09 14:41:52 |
| Source code size: | 211 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 364 / 498 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |