Libraryless. Click here for Pure Java version (2482L/16K).
1 | static LS firstNCountingDollarVarsNotInSet(int n, Set<S> set) { |
2 | new LS out; |
3 | int i = 0; |
4 | while (l(out) < n) { |
5 | S var = "$" + ++i; |
6 | if (!contains(set, var)) |
7 | out.add(var); |
8 | } |
9 | ret out; |
10 | } |
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: | 182 / 268 |
Version history: | 3 change(s) |
Referenced in: | [show references] |