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

15
LINES

< > BotCompany Repo | #1021167 // mapLines - map(lines(...))

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

Libraryless. Click here for Pure Java version (4881L/27K).

ifclass F1
  static <B> L<B> mapLines(S text, F1<S, B> f) {
    ret mapLines(f, text);
  }

  static <B> L<B> mapLines(F1<S, B> f, S text) {
    ret mapLines(f1ToIF1(f), text);
  }
endif

static <B> L<B> mapLines(S text, IF1<S, B> f) { ret mapLines(f, text); }

static <B> L<B> lambdaMapLike mapLines(IF1<S, B> f, S text) {
  ret map(f, lines(text));
}

Author comment

Began life as a copy of #1003239

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, ekrmjmnbrukm, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021167
Snippet name: mapLines - map(lines(...))
Eternal ID of this version: #1021167/5
Text MD5: 24c4bf7eeaf67e0b677154a72cc01831
Transpilation MD5: 9b32eca5d35599a133667bed84bd2465
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-29 07:55:36
Source code size: 368 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 347 / 444
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1021263 - mapEachLine - lines(map(lines(...)))
#1022703 - linesMap - lines(map(...))
#1023584 - mapLines_tlft - map(tlft(...))