Libraryless. Click here for Pure Java version (4566L/25K).
1 | static LS endingWith_dropSuffix(Cl<S> l, S suffix) { |
2 | new LS out; |
3 | fOr (S s : l) |
4 | if (endsWith(s, suffix)) |
5 | out.add(dropLast(l(suffix), s)); |
6 | ret out; |
7 | } |
8 | |
9 | static LS endingWith_dropSuffix(S suffix, Cl<S> l) { |
10 | ret endingWith_dropSuffix(l, suffix); |
11 | } |
Began life as a copy of #1014471
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033987 |
Snippet name: | endingWith_dropSuffix |
Eternal ID of this version: | #1033987/1 |
Text MD5: | 8863a5dae25d5c3e3319a68c7a23877f |
Transpilation MD5: | b7ff4c70f14cf0587397a499a15c5123 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-15 06:23:40 |
Source code size: | 269 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 194 / 266 |
Referenced in: | [show references] |