crocks
Version:
A collection of well known Algebraic Datatypes for your utter enjoyment.
14 lines (10 loc) • 311 B
JavaScript
/** @license ISC License (c) copyright 2016 original and current authors */
/** @author Ian Hofmann-Hicks (evil) */
var hasAlg = require('./hasAlg')
var isFunctor = require('./isFunctor')
// isApply : a -> Boolean
function isApply(m) {
return isFunctor(m)
&& hasAlg('ap', m)
}
module.exports = isApply