From 632b378b86f0fa1caf82a1ddf18d81894b728e3a Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Fri, 22 Dec 2023 17:13:14 -0600 Subject: [PATCH] move out of manifest --- codex/{manifest => }/indexingstrategy.nim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename codex/{manifest => }/indexingstrategy.nim (88%) diff --git a/codex/manifest/indexingstrategy.nim b/codex/indexingstrategy.nim similarity index 88% rename from codex/manifest/indexingstrategy.nim rename to codex/indexingstrategy.nim index 2faa2f83..b7774765 100644 --- a/codex/manifest/indexingstrategy.nim +++ b/codex/indexingstrategy.nim @@ -1,5 +1,5 @@ import std/sequtils -import ../utils +import ./utils # I'm choosing to use an assert here because: # 1. These are a programmer errors and *should not* happen during application runtime. @@ -10,10 +10,10 @@ type # Given an interation-count as input, will produce a seq of # selected indices. IndexingStrategy* = ref object of RootObj - firstIndex: int # Lowest index that can be returned - lastIndex: int # Highest index that can be returned - numberOfIterations: int # getIndices(iteration) will run from 0 ..< numberOfIterations - step: int + firstIndex*: int # Lowest index that can be returned + lastIndex*: int # Highest index that can be returned + numberOfIterations*: int # getIndices(iteration) will run from 0 ..< numberOfIterations + step*: int # Simplest approach: # 0 => 0, 1, 2