Skip to content

Commit 6810657

Browse files
author
Andrey Kuzmin
committed
Fix the example
1 parent 2ca1daf commit 6810657

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Ease.elm

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ are meant to match the graphical examples on [easings.net](http://easings.net/).
2525
import Ease
2626
n = 10
2727
28-
List.map (\i -> Ease.inQuad (i/n)) [0..n]
28+
List.map (\i -> Ease.inQuad (toFloat i / n)) (List.range 0 n)
2929
30-
> [0, 0.01, 0.04, 0.09, 0.16, 0.25, 0.36, 0.49, 0.64, 0.81, 1]
30+
--> [0, 0.01, 0.04, 0.09, 0.16, 0.25, 0.36, 0.49, 0.64, 0.81, 1]
3131
32-
List.map (\i -> Ease.outCubic (i/n)) [0..n]
32+
List.map (\i -> Ease.outCubic (toFloat i / n)) (List.range 0 n)
3333
34-
> [0, 0.271, 0.488, 0.657, 0.784, 0.875, 0.936, 0.973, 0.992, 0.999, 1]
34+
--> [0, 0.271, 0.488, 0.657, 0.784, 0.875, 0.936, 0.973, 0.992, 0.999, 1]
3535
3636
3737
# Easing functions

0 commit comments

Comments
 (0)