From d30f3dbd9d2f5ad1184f3d61cb1630f3447bd88c Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 8 Aug 2021 18:43:00 +0530 Subject: move utils to utils :p --- src/chart.ml | 8 -------- src/utils.ml | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/chart.ml b/src/chart.ml index de79082..194e3ba 100644 --- a/src/chart.ml +++ b/src/chart.ml @@ -1,11 +1,3 @@ -let to_string c = String.make 1 c - -let space = to_string ' ' - -let axis = "┬" - -let axis_spc = "─" - type t = { vals : int list; opts : Options.t } let default = { vals = []; opts = Options.default } diff --git a/src/utils.ml b/src/utils.ml index 833c972..59eac6c 100644 --- a/src/utils.ml +++ b/src/utils.ml @@ -29,3 +29,11 @@ let rot_right ls = List.(rev ls |> transpose) let rot_left ls = List.(transpose ls |> rev) let saturating_sub b a = if a < b then 0 else a - b + +let to_string c = String.make 1 c + +let space = to_string ' ' + +let axis = "┬" + +let axis_spc = "─" -- cgit v1.2.3