static S newCase() {
int id = 1;
File f = null;
while (fileExists(f = newFile(javaxDataDir(), formatSnippetID(programID()), str(id))))
++id;
f.mkdirs();
print("Using case: " + id);
caseID(str(id));
ret str(id);
}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: | #1010433 |
| Snippet name: | newCase |
| Eternal ID of this version: | #1010433/4 |
| Text MD5: | b8daf05dd56e464c6e82d3579034051c |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-09-17 22:23:24 |
| Source code size: | 239 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 807 / 859 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |