1 | // parameter order best for currying |
2 | sbool containsLineStartingWith(S prefix, S text) { |
3 | for (S s : lines_iterator(text)) |
4 | if (startsWith(s, prefix)) |
5 | true; |
6 | false; |
7 | } |
Began life as a copy of #1022578
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: | #1022609 |
Snippet name: | containsLineStartingWith |
Eternal ID of this version: | #1022609/3 |
Text MD5: | da9ed9aac7b168958262d98d2efcf361 |
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:12:59 |
Source code size: | 182 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 262 / 269 |
Version history: | 2 change(s) |
Referenced in: | [show references] |