ref: d0807e07a016e5a08e9f02d51d79d5e3378d5938
parent: d6b4582c446dcf11d271c27b502c92abdc8f27fe
author: Lennart Augustsson <lennart.augustsson@epicgames.com>
date: Fri Sep 22 12:16:35 EDT 2023
Better leString
--- a/lib/Text/String.hs
+++ b/lib/Text/String.hs
@@ -118,8 +118,9 @@
[] -> False
y:ys -> eqChar x y && eqString xs ys
-}
-
leString :: String -> String -> Bool
+leString s t = not (eqOrdering GT (compareString s t))
+{-leString axs ays =
case axs of
[] -> True
@@ -127,6 +128,7 @@
case ays of
[] -> False
y:ys -> ltChar x y || eqChar x y && leString xs ys
+-}
padLeft :: Int -> String -> String
padLeft n s = replicate (n - length s) ' ' ++ s
--
⑨