This website requires JavaScript.
Explore
Help
Sign in
glen
/
pocomath
Watch
2
Star
1
Fork
You've already forked pocomath
0
Code
Issues
3
Pull requests
Projects
Releases
Wiki
Activity
81ff04f88f
Branches
Tags
No results found.
pocomath
/
src
/
number
/
negate.mjs
4 lines
84 B
JavaScript
Raw
Normal View
History
Unescape
Escape
fix: Separate typed instance for each PocomathInstance (#15) Also starts each PocomathInstance with no types at all, and uses the new situation to eliminate the need for a Complex "base case". Resolves #14. Resolves #13. Co-authored-by: Glen Whitney <glen@studioinfinity.org> Reviewed-on: https://code.studioinfinity.org/glen/pocomath/pulls/15
2022-07-22 20:49:14 +00:00
export
{
Types
}
from
'./Types/number.mjs'
feat: Additional notations for specifying dependencies and implementations Allow just a plain function for when there are no dependencies, and allow an object with 'uses' and 'does' properties for the dependencies (optional) and implementation, respectively.
2022-07-22 21:48:06 -07:00
export
const
negate
=
{
number
:
n
=>
-
n
}
Reference in a new issue
Copy permalink