Libraryless. Click here for Pure Java version (4699L/26K).
sbool mapMethodLike dm_setFlag(S flagName, bool value default true) { O mod = dm_current_generic(); O stem = dm_stem(mod); Int flagCode = cast getOpt flagName(stem); if (flagCode == null) false; call(stem, value ? "setFlag" : "clearFlag", flagCode); true; }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033388 |
Snippet name: | dm_setFlag |
Eternal ID of this version: | #1033388/6 |
Text MD5: | 45064ba3daf813b0a64bbddfda2dc9ef |
Transpilation MD5: | 2a8634864fd806001d1932c5e6388ef5 |
Author: | stefan |
Category: | javax / dynamic modules |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-27 01:19:14 |
Source code size: | 276 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 151 / 212 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1033389 - dm_getFlag |