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

10
LINES

< > BotCompany Repo | #1007439 // lines - short for fromLines / toLines

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (11001L/60K).

1  
static S lines(Iterable lines) { ret fromLines(lines); }
2  
static S lines(O[] lines) { ret fromLines(asList(lines)); }
3  
static L<S> lines(S s) { ret toLines(s); }
4  
5  
// convenience map call
6  
static <A> S lines(Iterable<A> l, IF1<A, S> f) {
7  
  ret mapToLines(l, f);
8  
}
9  
10  
static LS lines(File f) { ret linesFromFile_list(f); }

Author comment

Began life as a copy of #1002398

download  show line numbers  debug dex  old transpilations   

Travelled to 21 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lnbujpyubztb, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, wnsclhtenguj, xrpafgyirdlv, yanjaxplzisb

No comments. add comment

Snippet ID: #1007439
Snippet name: lines - short for fromLines / toLines
Eternal ID of this version: #1007439/11
Text MD5: 6a2c5feab9b6da117ab763dddd487cb1
Transpilation MD5: 886260317963ecae97911d155c50bed3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-09-15 20:11:40
Source code size: 324 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 786 / 1311
Version history: 10 change(s)
Referenced in: [show references]