Libraryless. Click here for Pure Java version (2334L/15K).
1 | static int getIndent(S s) { |
2 | int n = Integer.MAX_VALUE; |
3 | for (S l : toLines(s)) |
4 | n = min(n, getIndentOfLine(l)); |
5 | ret n; |
6 | } |
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: | #1002854 |
Snippet name: | getIndent - detect indent |
Eternal ID of this version: | #1002854/2 |
Text MD5: | 9d0000b3bcd60c735c8f778a652ff1df |
Transpilation MD5: | 76664117a4677af35932a003be402219 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-19 16:05:27 |
Source code size: | 135 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 671 / 724 |
Version history: | 1 change(s) |
Referenced in: | [show references] |