Skip to content

Commit

Permalink
add _Basics_is(Positive|Negative)Infinity (elm#1107)
Browse files Browse the repository at this point in the history
This isn’t a fix for elm#1107, but a part of a potential one. These `Kernel.Basics` functions will allow a more optimized solution to the `List.repeat` problem
  • Loading branch information
ForgottenGensym authored Jun 1, 2021
1 parent 9f9e7ec commit b9aeae8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Elm/Kernel/Basics.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ var _Basics_atan2 = F2(Math.atan2);
function _Basics_toFloat(x) { return x; }
function _Basics_truncate(n) { return n | 0; }
function _Basics_isInfinite(n) { return n === Infinity || n === -Infinity; }
function _Basics_isPositiveInfinity(n) { return n === Infinity; }
function _Basics_isNegativeInfinity(n) { return n === -Infinity; }

var _Basics_ceiling = Math.ceil;
var _Basics_floor = Math.floor;
Expand Down

0 comments on commit b9aeae8

Please sign in to comment.