about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--users/sterni/nix/string/default.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/users/sterni/nix/string/default.nix b/users/sterni/nix/string/default.nix
index e2b27571c73f..3fe7c04618c3 100644
--- a/users/sterni/nix/string/default.nix
+++ b/users/sterni/nix/string/default.nix
@@ -7,15 +7,16 @@ let
     ord
     ;
 
-  inherit (depot.users.sterni.nix.flow)
-    cond
+  inherit (depot.users.sterni.nix)
+    int
+    flow
     ;
 
   take = n: s:
     builtins.substring 0 n s;
 
   drop = n: s:
-    builtins.substring n (builtins.stringLength s - n) s;
+    builtins.substring n int.maxBound s;
 
   charAt = i: s:
     let
@@ -26,7 +27,7 @@ let
     let
       len = builtins.stringLength s;
       go = i:
-        cond [
+        flow.cond [
           [ (i >= len) null ]
           [ (charAt i s == char) i ]
           [ true (go (i + 1)) ]