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


< > BotCompany Repo | #1026590 // countIterator_inclusive - count from a to b (inclusively)

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

Libraryless. Click here for Pure Java version (3985L/22K).

static ItIt<Int> countIterator_inclusive(final int a, final int b) {
  ret countIterator_exclusive(a, b+1);

static <A> ItIt<A> countIterator_inclusive(int a, int b, int step default 1, IF1<Int, A> f) {
  ret countIterator_inclusive_step(a, b, 1, f);

static <A> ItIt<A> countIterator_inclusive(double a, double b, double step, IF1<Double, A> f) {
  ret countIterator_inclusive_step(a, b, step, f);

Author comment

Began life as a copy of #1018109

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026590
Snippet name: countIterator_inclusive - count from a to b (inclusively)
Eternal ID of this version: #1026590/7
Text MD5: d0621eacaba2722988e7bb2f6848b203
Transpilation MD5: 3b3d206addd6781c857b7a28f617a3f4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-11 05:19:02
Source code size: 416 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 148 / 200
Version history: 6 change(s)
Referenced in: [show references]