1 | static bool possiblyIsEvenIndent(S s) { |
2 | for (S line : lines(s)) { |
3 | S indent = getLeadingSpaces(line); |
4 | if (!allSpaces(indent) || odd(l(indent))) false; |
5 | } |
6 | true; |
7 | } |
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: | #1013630 |
Snippet name: | possiblyIsEvenIndent - is text indented with even spaces? |
Eternal ID of this version: | #1013630/4 |
Text MD5: | 2cf71807f322a3872867e45bbe25c04f |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-01-12 09:51:31 |
Source code size: | 179 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 402 / 425 |
Version history: | 3 change(s) |
Referenced in: | [show references] |