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

5
LINES

< > BotCompany Repo | #1031710 // startingWithIC_navigableSubSet

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

Libraryless. Click here for Pure Java version (2735L/17K).

// set needs to be a ciSet
static Set<S> startingWithIC_navigableSubSet(S prefix, NavigableSet<S> set) {
  if (empty(prefix) || empty(set)) ret set;
  ret set.subSet(prefix, true, lexicographicallyNextString(prefix), false);
}

Author comment

Began life as a copy of #1030146

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031710
Snippet name: startingWithIC_navigableSubSet
Eternal ID of this version: #1031710/1
Text MD5: bf4151dc5ed0c62cce24f9df83c00bf9
Transpilation MD5: b677e193dbfe20666fc20ae4657cce9b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-28 16:34:58
Source code size: 230 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 84 / 140
Referenced in: [show references]