Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sanctuary-js/sanctuary
/ Sum
Function
Sum
test/internal/Sum.js:11–14 ·
view source on GitHub ↗
(value)
Source
from the content-addressed store, hash-verified
9
10
// Sum :: Number -> Sum
11
function
Sum(value) {
12
if
(!(this instanceof Sum))
return
new
Sum (value);
13
this.value = value;
14
}
15
16
// sumTypeIdent :: String
17
const
sumTypeIdent = Sum.prototype[
'@@type'
] =
'sanctuary/Sum'
;
Callers
3
is.js
File · 0.85
invert.js
File · 0.85
Sum.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected