Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prelude.ts

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prelude.ts - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

dist/src/Foldable.d.ts

@@ -1,2 +0,2 @@

interface Foldable<T> {
export interface Foldable<T> {
/**

@@ -3,0 +3,0 @@ * Reduces the collection to a single value using the

"use strict";
exports.__esModule = true;
//# sourceMappingURL=Foldable.js.map

@@ -6,2 +6,3 @@ import { WithEquality } from "./Comparison";

import { Vector } from "./Vector";
import { Foldable } from "./Foldable";
/**

@@ -8,0 +9,0 @@ * A generic interface for a dictionary, mapping keys to values.

import { WithEquality } from "./Comparison";
import { Value } from "./Value";
import { Collection } from "./Collection";
import { Foldable } from "./Foldable";
/**

@@ -5,0 +6,0 @@ * A generic interface for set-like implementations.

import { Value } from "./Value";
import { Seq } from "./Seq";
import { Vector } from "./Vector";

@@ -42,3 +41,3 @@ import { WithEquality } from "./Comparison";

*/
static sequence<T>(elts: Iterable<Option<T>>): Option<Seq<T>>;
static sequence<T>(elts: Iterable<Option<T>>): Option<Vector<T>>;
/**

@@ -45,0 +44,0 @@ * Applicative lifting for Option.

@@ -5,2 +5,3 @@ import { WithEquality, Ordering } from "./Comparison";

import { Collection } from "./Collection";
import { Foldable } from "./Foldable";
/**

@@ -7,0 +8,0 @@ * A generic interface for list-like implementations.

{
"name": "prelude.ts",
"version": "0.2.1",
"version": "0.2.2",
"description": "A typescript functional programming library",

@@ -5,0 +5,0 @@ "main": "dist/src/index.js",

@@ -1,2 +0,2 @@

interface Foldable<T> {
export interface Foldable<T> {

@@ -3,0 +3,0 @@ /**

@@ -6,2 +6,3 @@ import { WithEquality } from "./Comparison";

import { Vector } from "./Vector";
import { Foldable } from "./Foldable";

@@ -8,0 +9,0 @@ /**

import { WithEquality } from "./Comparison";
import { Value} from "./Value";
import { Collection } from "./Collection";
import { Foldable } from "./Foldable";

@@ -5,0 +6,0 @@ /**

@@ -59,4 +59,4 @@ import { Value } from "./Value";

*/
static sequence<T>(elts:Iterable<Option<T>>): Option<Seq<T>> {
let r: Seq<T> = Vector.empty<T>();
static sequence<T>(elts:Iterable<Option<T>>): Option<Vector<T>> {
let r: Vector<T> = Vector.empty<T>();
const iterator = elts[Symbol.iterator]();

@@ -67,3 +67,3 @@ let curItem = iterator.next();

if (v.isNone()) {
return <None<Seq<T>>>none;
return <None<Vector<T>>>none;
}

@@ -70,0 +70,0 @@ r = r.appendStruct(v.getOrThrow());

@@ -5,2 +5,3 @@ import { WithEquality, Ordering } from "./Comparison";

import { Collection } from "./Collection";
import { Foldable } from "./Foldable";

@@ -7,0 +8,0 @@ /**

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc