summaryrefslogtreecommitdiff
path: root/lc
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2016-02-16 01:02:23 +0100
committerPéter Diviánszky <divipp@gmail.com>2016-02-16 01:02:23 +0100
commitaa927f04434e53f41e9fcb04f9c6680c9457fcc8 (patch)
treef7d7d8bfe30543338bc4aa265f111d34fd700cdf /lc
parent6befbf3058a87522dc59e3e55c65a6d7b448fd9e (diff)
eliminate FixLabel, performance is back at previous level
Diffstat (limited to 'lc')
-rw-r--r--lc/Prelude.lc4
1 files changed, 3 insertions, 1 deletions
diff --git a/lc/Prelude.lc b/lc/Prelude.lc
index b82cd903..c3b819d9 100644
--- a/lc/Prelude.lc
+++ b/lc/Prelude.lc
@@ -353,7 +353,9 @@ lookat pos target up = translateBefore4 (neg pos) (orthogonal $ toOrthoUnsafe r)
353scale t v = v * V4 t t t 1.0 353scale t v = v * V4 t t t 1.0
354 354
355fromTo :: Float -> Float -> [Float] 355fromTo :: Float -> Float -> [Float]
356fromTo a b = if a > b then [] else a: fromTo (a +! 1.0) b 356fromTo a b
357 | a > b = []
358 | otherwise = a: fromTo (a + 1) b
357 359
358(!!) :: [a] -> Int -> a 360(!!) :: [a] -> Int -> a
359(x : _) !! 0 = x 361(x : _) !! 0 = x