Closed nokome closed 6 years ago
Now that stencila/convert#2 is complete, this issue has been started in #13. Progress:
select
not
positive
negative
pow
multiply
divide
remainder
add
subtract
less
less_or_equal
greater
greater_or_equal
equal
not_equal
and
or
A PR in the
stencila/mini
repo implements operators as function calls https://github.com/stencila/mini/pull/18. These functions need to be implemented inlibcore
. AwaitingFunctionJsDocConverter
to be implemented https://github.com/stencila/convert/pull/2 before doing this..
value.member
select(value, member)
[]
value[member]
select(value, member)
!
!value
not(value)
+
+value
positive(value)
-
-value
negative(value)
^
value ^ expon
pow(value, expon)
*
value * other
multiply(value, other)
/
value / other
divide(value, other)
%
value % other
remainder(value, other)
+
value + other
add(value, other)
-
value - other
subtract(value, other)
<
value < other
less(value, other)
<=
value <= other
less_or_equal(value, other)
>
value > other
greater(value, other)
>=
value >= other
greater_or_equal(value, other)
==
value == other
equal(value, other)
!=
value != other
not_equal(value, other)
&&
value && other
and(value, other)
\|\|
value \|\| other
or(value, other)