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).

static S lines(Iterable lines) { ret fromLines(lines); }
static S lines(O[] lines) { ret fromLines(asList(lines)); }
static L<S> lines(S s) { ret toLines(s); }

// convenience map call
static <A> S lines(Iterable<A> l, IF1<A, S> f) {
  ret mapToLines(l, f);
}

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: 664 / 1166
Version history: 10 change(s)
Referenced in: [show references]