Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1022609 // containsLineStartingWith

JavaX fragment (include)

// parameter order best for currying
sbool containsLineStartingWith(S prefix, S text) {
  for (S s : lines_iterator(text))
    if (startsWith(s, prefix))
      true;
  false;
}

Author comment

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: 150 / 183
Version history: 2 change(s)
Referenced in: [show references]