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);
11 function div(a,b) { return (a/b)|0; }
12 function rem(a,b) { return a % b; }
14 function logBase(base,n) { return Math.log(n) / Math.log(base); }
15 function min(a,b) { return Utils.cmp(a,b) < 0 ? a : b; }
16 function max(a,b) { return Utils.cmp(a,b) > 0 ? a : b; }
17 function clamp(lo,hi,n) {
18 return Utils.cmp(n,lo) < 0 ? lo : Utils.cmp(n,hi) > 0 ? hi : n; }
19 function xor(a,b) { return a !== b; }
20 function not(b) { return !b; }
21 function isInfinite(n) { return n === Infinity || n === -Infinity }
23 function truncate(n) { return n|0; }
26 return d * Math.PI / 180;
29 return 2 * Math.PI * t;
31 function fromPolar(point) {
34 return Utils.Tuple2(r * Math.cos(t), r * Math.sin(t));
36 function toPolar(point) {
39 return Utils.Tuple2(Math.sqrt(x * x + y * y), Math.atan2(y,x));
67 compare:Utils.compare,
76 toFloat:function(x) { return x; },
81 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