3Elm.Native.Basics.make = function(elm) {
4 elm.Native = elm.Native || {};
5 elm.Native.Basics = elm.Native.Basics || {};
6 if (elm.Native.Basics.values) return elm.Native.Basics.values;
8 var JS = Elm.Native.JavaScript.make(elm);
9 var Utils = Elm.Native.Utils.make(elm);
18 function logBase(base, n) {
19 return Math.log(n) / Math.log(base);
25 return n < 0 ? -n : n;
29 return Utils.cmp(a,b) < 0 ? a : b;
32 return Utils.cmp(a,b) > 0 ? a : b;
34 function clamp(lo, hi, n) {
35 return Utils.cmp(n,lo) < 0 ? lo : Utils.cmp(n,hi) > 0 ? hi : n;
44 function isInfinite(n) {
45 return n === Infinity || n === -Infinity
48 function truncate(n) {
53 return d * Math.PI / 180;
56 return 2 * Math.PI * t;
58 function fromPolar(point) {
61 return Utils.Tuple2(r * Math.cos(t), r * Math.sin(t));
63 function toPolar(point) {
66 return Utils.Tuple2(Math.sqrt(x * x + y * y), Math.atan2(y,x));
82 atan2: F2(Math.atan2),
96 compare: Utils.compare,
105 toFloat: function(x) { return x; },
107 isInfinite: isInfinite
110 return elm.Native.Basics.values = basics;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list