Add rangeTo entry in builtins map
This commit is contained in:
+16
@@ -128,6 +128,10 @@ val binaryFunctions = mapOf<CompileTimeFunction, Function2<Any?, Any?, Any>>(
|
||||
binaryOperation<Byte, Int>("plus", "Byte", "Int") { a, b -> a.plus(b) },
|
||||
binaryOperation<Byte, Long>("plus", "Byte", "Long") { a, b -> a.plus(b) },
|
||||
binaryOperation<Byte, Short>("plus", "Byte", "Short") { a, b -> a.plus(b) },
|
||||
binaryOperation<Byte, Byte>("rangeTo", "Byte", "Byte") { a, b -> a.rangeTo(b) },
|
||||
binaryOperation<Byte, Int>("rangeTo", "Byte", "Int") { a, b -> a.rangeTo(b) },
|
||||
binaryOperation<Byte, Long>("rangeTo", "Byte", "Long") { a, b -> a.rangeTo(b) },
|
||||
binaryOperation<Byte, Short>("rangeTo", "Byte", "Short") { a, b -> a.rangeTo(b) },
|
||||
binaryOperation<Byte, Byte>("rem", "Byte", "Byte") { a, b -> a.rem(b) },
|
||||
binaryOperation<Byte, Double>("rem", "Byte", "Double") { a, b -> a.rem(b) },
|
||||
binaryOperation<Byte, Float>("rem", "Byte", "Float") { a, b -> a.rem(b) },
|
||||
@@ -246,6 +250,10 @@ val binaryFunctions = mapOf<CompileTimeFunction, Function2<Any?, Any?, Any>>(
|
||||
binaryOperation<Int, Int>("plus", "Int", "Int") { a, b -> a.plus(b) },
|
||||
binaryOperation<Int, Long>("plus", "Int", "Long") { a, b -> a.plus(b) },
|
||||
binaryOperation<Int, Short>("plus", "Int", "Short") { a, b -> a.plus(b) },
|
||||
binaryOperation<Int, Byte>("rangeTo", "Int", "Byte") { a, b -> a.rangeTo(b) },
|
||||
binaryOperation<Int, Int>("rangeTo", "Int", "Int") { a, b -> a.rangeTo(b) },
|
||||
binaryOperation<Int, Long>("rangeTo", "Int", "Long") { a, b -> a.rangeTo(b) },
|
||||
binaryOperation<Int, Short>("rangeTo", "Int", "Short") { a, b -> a.rangeTo(b) },
|
||||
binaryOperation<Int, Byte>("rem", "Int", "Byte") { a, b -> a.rem(b) },
|
||||
binaryOperation<Int, Double>("rem", "Int", "Double") { a, b -> a.rem(b) },
|
||||
binaryOperation<Int, Float>("rem", "Int", "Float") { a, b -> a.rem(b) },
|
||||
@@ -289,6 +297,10 @@ val binaryFunctions = mapOf<CompileTimeFunction, Function2<Any?, Any?, Any>>(
|
||||
binaryOperation<Long, Int>("plus", "Long", "Int") { a, b -> a.plus(b) },
|
||||
binaryOperation<Long, Long>("plus", "Long", "Long") { a, b -> a.plus(b) },
|
||||
binaryOperation<Long, Short>("plus", "Long", "Short") { a, b -> a.plus(b) },
|
||||
binaryOperation<Long, Byte>("rangeTo", "Long", "Byte") { a, b -> a.rangeTo(b) },
|
||||
binaryOperation<Long, Int>("rangeTo", "Long", "Int") { a, b -> a.rangeTo(b) },
|
||||
binaryOperation<Long, Long>("rangeTo", "Long", "Long") { a, b -> a.rangeTo(b) },
|
||||
binaryOperation<Long, Short>("rangeTo", "Long", "Short") { a, b -> a.rangeTo(b) },
|
||||
binaryOperation<Long, Byte>("rem", "Long", "Byte") { a, b -> a.rem(b) },
|
||||
binaryOperation<Long, Double>("rem", "Long", "Double") { a, b -> a.rem(b) },
|
||||
binaryOperation<Long, Float>("rem", "Long", "Float") { a, b -> a.rem(b) },
|
||||
@@ -330,6 +342,10 @@ val binaryFunctions = mapOf<CompileTimeFunction, Function2<Any?, Any?, Any>>(
|
||||
binaryOperation<Short, Int>("plus", "Short", "Int") { a, b -> a.plus(b) },
|
||||
binaryOperation<Short, Long>("plus", "Short", "Long") { a, b -> a.plus(b) },
|
||||
binaryOperation<Short, Short>("plus", "Short", "Short") { a, b -> a.plus(b) },
|
||||
binaryOperation<Short, Byte>("rangeTo", "Short", "Byte") { a, b -> a.rangeTo(b) },
|
||||
binaryOperation<Short, Int>("rangeTo", "Short", "Int") { a, b -> a.rangeTo(b) },
|
||||
binaryOperation<Short, Long>("rangeTo", "Short", "Long") { a, b -> a.rangeTo(b) },
|
||||
binaryOperation<Short, Short>("rangeTo", "Short", "Short") { a, b -> a.rangeTo(b) },
|
||||
binaryOperation<Short, Byte>("rem", "Short", "Byte") { a, b -> a.rem(b) },
|
||||
binaryOperation<Short, Double>("rem", "Short", "Double") { a, b -> a.rem(b) },
|
||||
binaryOperation<Short, Float>("rem", "Short", "Float") { a, b -> a.rem(b) },
|
||||
|
||||
Reference in New Issue
Block a user