1 | // parameter order best for currying |
2 | sbool containsLineStartingWith_trim(S prefix, S text) { |
3 | for (S s : lines_iterator(text)) |
4 | if (startsWith(ltrim(s), prefix)) |
5 | true; |
6 | false; |
7 | } |
Began life as a copy of #1022609
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022610 |
Snippet name: | containsLineStartingWith_trim |
Eternal ID of this version: | #1022610/3 |
Text MD5: | 1572dd928a5739987b44363dd7cf9fbf |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-24 12:13:05 |
Source code size: | 194 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 175 / 195 |
Version history: | 2 change(s) |
Referenced in: | [show references] |