How to use the sanctuary.insert function in sanctuary

To help you get started, we’ve selected a few sanctuary examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github xodio / hm-def / src / signature.js View on Github external
    (xs => x => S.insert (f (x)) (x) (xs))
    ({}));
github xodio / hm-def / src / signature.js View on Github external
(xs => x => {
      const typeVarName = S.prop ('typevar') (x);
      const newTypeClassName = S.prop ('typeclass') (x);
      const typeVarClasses = S.fromMaybe
        ([])
        (S.get
          (S.is ($.Array ($.String)))
          (typeVarName)
          (xs));
      return S.insert
        (typeVarName)
        (S.append (newTypeClassName) (typeVarClasses))
        (xs);
    })
    ({});
github xodio / hm-def / src / signature.js View on Github external
  (acc => curr => S.insert (curr[0]) (curr[1]) (acc))
  ({});