MCPcopy
hub / github.com/sanctuary-js/sanctuary / justs

Function justs

index.js:2178–2180  ·  view source on GitHub ↗
(maybes)

Source from the content-addressed store, hash-verified

2176 //. ['foo', 'baz']
2177 //. ```
2178 function justs(maybes) {
2179 return map (prop ('value')) (filter (isJust) (maybes));
2180 }
2181 _.justs = {
2182 consts: {f: [Z.Filterable, Z.Functor]},
2183 types: [f ($.Maybe (a)), f (a)],

Callers

nothing calls this directly

Calls 3

mapFunction · 0.85
propFunction · 0.85
filterFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…