remove node_modules and .gitignore them

This commit is contained in:
2023-11-24 14:40:32 -05:00
parent 5f6e638903
commit a74d7b91b8
8963 changed files with 1 additions and 874175 deletions
-40
View File
@@ -1,40 +0,0 @@
/**
* @packageDocumentation
* @module std
*/
import { IPair } from "./IPair";
import { IComparable } from "../functional/IComparable";
/**
* Entry for mapping.
*
* @author Jeongho Nam - https://github.com/samchon
*/
export declare class Entry<Key, T> implements Readonly<IPair<Key, T>>, IComparable<Entry<Key, T>> {
/**
* The first, key element.
*/
readonly first: Key;
/**
* The second, mapped element.
*/
second: T;
/**
* Intializer Constructor.
*
* @param first The first, key element.
* @param second The second, mapped element.
*/
constructor(first: Key, second: T);
/**
* @inheritDoc
*/
equals(obj: Entry<Key, T>): boolean;
/**
* @inheritDoc
*/
less(obj: Entry<Key, T>): boolean;
/**
* @inheritDoc
*/
hashCode(): number;
}
-43
View File
@@ -1,43 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Entry = void 0;
var hash_1 = require("../functional/hash");
var comparators_1 = require("../functional/comparators");
/**
* Entry for mapping.
*
* @author Jeongho Nam - https://github.com/samchon
*/
var Entry = /** @class */ (function () {
/**
* Intializer Constructor.
*
* @param first The first, key element.
* @param second The second, mapped element.
*/
function Entry(first, second) {
this.first = first;
this.second = second;
}
/**
* @inheritDoc
*/
Entry.prototype.equals = function (obj) {
return (0, comparators_1.equal_to)(this.first, obj.first);
};
/**
* @inheritDoc
*/
Entry.prototype.less = function (obj) {
return (0, comparators_1.less)(this.first, obj.first);
};
/**
* @inheritDoc
*/
Entry.prototype.hashCode = function () {
return (0, hash_1.hash)(this.first);
};
return Entry;
}());
exports.Entry = Entry;
//# sourceMappingURL=Entry.js.map
-19
View File
@@ -1,19 +0,0 @@
/**
* @packageDocumentation
* @module std
*/
/**
* Pair of two elements.
*
* @author Jeongho Nam - https://github.com/samchon
*/
export interface IPair<First, Second> {
/**
* The first element.
*/
first: First;
/**
* The second element.
*/
second: Second;
}
-3
View File
@@ -1,3 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IPair.js.map
-49
View File
@@ -1,49 +0,0 @@
/**
* @packageDocumentation
* @module std
*/
import { IPair } from "./IPair";
import { IComparable } from "../functional/IComparable";
/**
* Pair of two elements.
*
* @author Jeongho Nam - https://github.com/samchon
*/
export declare class Pair<First, Second> implements IPair<First, Second>, IComparable<Pair<First, Second>> {
/**
* @inheritDoc
*/
first: First;
/**
* @inheritDoc
*/
second: Second;
/**
* Initializer Constructor.
*
* @param first The first element.
* @param second The second element.
*/
constructor(first: First, second: Second);
/**
* @inheritDoc
*/
equals<U1 extends First, U2 extends Second>(pair: Pair<U1, U2>): boolean;
/**
* @inheritDoc
*/
less<U1 extends First, U2 extends Second>(pair: Pair<U1, U2>): boolean;
/**
* @inheritDoc
*/
hashCode(): number;
}
/**
* Create a {@link Pair}.
*
* @param first The 1st element.
* @param second The 2nd element.
*
* @return A {@link Pair} object.
*/
export declare function make_pair<First, Second>(first: First, second: Second): Pair<First, Second>;
-65
View File
@@ -1,65 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.make_pair = exports.Pair = void 0;
var hash_1 = require("../functional/hash");
var comparators_1 = require("../functional/comparators");
/**
* Pair of two elements.
*
* @author Jeongho Nam - https://github.com/samchon
*/
var Pair = /** @class */ (function () {
/* ---------------------------------------------------------
CONSTRUCTORS
--------------------------------------------------------- */
/**
* Initializer Constructor.
*
* @param first The first element.
* @param second The second element.
*/
function Pair(first, second) {
this.first = first;
this.second = second;
}
/* ---------------------------------------------------------
COMPARISON
--------------------------------------------------------- */
/**
* @inheritDoc
*/
Pair.prototype.equals = function (pair) {
return ((0, comparators_1.equal_to)(this.first, pair.first) &&
(0, comparators_1.equal_to)(this.second, pair.second));
};
/**
* @inheritDoc
*/
Pair.prototype.less = function (pair) {
if ((0, comparators_1.equal_to)(this.first, pair.first) === false)
return (0, comparators_1.less)(this.first, pair.first);
else
return (0, comparators_1.less)(this.second, pair.second);
};
/**
* @inheritDoc
*/
Pair.prototype.hashCode = function () {
return (0, hash_1.hash)(this.first, this.second);
};
return Pair;
}());
exports.Pair = Pair;
/**
* Create a {@link Pair}.
*
* @param first The 1st element.
* @param second The 2nd element.
*
* @return A {@link Pair} object.
*/
function make_pair(first, second) {
return new Pair(first, second);
}
exports.make_pair = make_pair;
//# sourceMappingURL=Pair.js.map
-8
View File
@@ -1,8 +0,0 @@
/**
* @packageDocumentation
* @module std
*/
export * from "./IPair";
export * from "./Pair";
export * from "./Entry";
export * from "./node";
-31
View File
@@ -1,31 +0,0 @@
"use strict";
//================================================================
/**
* @packageDocumentation
* @module std
*/
//================================================================
// <utility>
//
// @reference http://www.cplusplus.com/reference/utility/
// @author Jeongho Nam - https://github.com/samchon
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./IPair"), exports);
__exportStar(require("./Pair"), exports);
__exportStar(require("./Entry"), exports);
__exportStar(require("./node"), exports);
//# sourceMappingURL=index.js.map
-6
View File
@@ -1,6 +0,0 @@
/**
* Test whether the code is running on NodeJS.
*
* @return Whether NodeJS or not.
*/
export declare function is_node(): boolean;
-26
View File
@@ -1,26 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.is_node = void 0;
//================================================================
/**
* @packageDocumentation
* @module std
*/
//================================================================
var is_node_ = null;
/**
* Test whether the code is running on NodeJS.
*
* @return Whether NodeJS or not.
*/
function is_node() {
if (is_node_ === null)
is_node_ =
typeof global === "object" &&
typeof global.process === "object" &&
typeof global.process.versions === "object" &&
typeof global.process.versions.node !== "undefined";
return is_node_;
}
exports.is_node = is_node;
//# sourceMappingURL=node.js.map