How to use the sanctuary.Just 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 ramda / ramda / test / partition.js View on Github external
it('works with other filterables', function() {
    eq(R.partition(R.isEmpty, S.Just(3)),
       [S.Nothing(), S.Just(3)]);
    eq(R.partition(R.complement(R.isEmpty), S.Just(3)),
       [S.Just(3), S.Nothing()]);
  });
github ramda / ramda / test / partition.js View on Github external
it('works with other filterables', function() {
    eq(R.partition(R.isEmpty, S.Just(3)),
       [S.Nothing(), S.Just(3)]);
    eq(R.partition(R.complement(R.isEmpty), S.Just(3)),
       [S.Just(3), S.Nothing()]);
  });