@blake.regalia/belt
Advanced tools
Comparing version 0.41.2 to 0.42.0
@@ -350,1 +350,8 @@ import type { NoInfer } from 'ts-toolbelt/out/Function/NoInfer'; | ||
export declare const try_async: <w_error, w_return>(f_try: () => Promisable<w_return>) => Promise<[w_return, 0] | [undefined, w_error]>; | ||
/** | ||
* Takes the given value and calls the given function with it as the first and only argument | ||
* @param w_value | ||
* @param f_action | ||
* @returns | ||
*/ | ||
export declare const call_with: <w_value, w_return>(w_value: w_value, f_action: (w_use: w_value) => w_return) => w_return; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fodemtv = exports.transform_values = exports.oderom = exports.transform_object = exports.oderaf = exports.flatten_entries = exports.oderac = exports.concat_entries = exports.oder = exports.reduce_object = exports.filter_object = exports.odem = exports.map_entries = exports.ofe = exports.from_entries = exports.ode = exports.entries = exports.odv = exports.values = exports.odk = exports.keys = exports.oda = exports.assign = exports.odc = exports.create = exports.each = exports.array = exports.is_error = exports.is_iterable = exports.is_dict_es = exports.is_dict = exports.is_array = exports.is_bytes = exports.is_function = exports.is_object = exports.is_symbol = exports.is_string = exports.is_bigint = exports.is_number = exports.is_boolean = exports.is_undefined = exports.narrow = exports.cast = exports.F_IDENTITY = exports.F_NOOP = exports.XG_32 = exports.XG_16 = exports.XG_8 = exports.__UNDEFINED = exports.ATU8_NIL = void 0; | ||
exports.try_async = exports.try_sync = exports.die = exports.normalize = exports.product = exports.sum = exports.remove = exports.shuffle = exports.random_int = exports.deduplicate = exports.interjoin = exports.collapse = exports.fold = void 0; | ||
exports.call_with = exports.try_async = exports.try_sync = exports.die = exports.normalize = exports.product = exports.sum = exports.remove = exports.shuffle = exports.random_int = exports.deduplicate = exports.interjoin = exports.collapse = exports.fold = void 0; | ||
/** | ||
@@ -485,2 +485,10 @@ * Utility nil buffer constant | ||
exports.try_async = try_async; | ||
/** | ||
* Takes the given value and calls the given function with it as the first and only argument | ||
* @param w_value | ||
* @param f_action | ||
* @returns | ||
*/ | ||
const call_with = (w_value, f_action) => f_action(w_value); | ||
exports.call_with = call_with; | ||
//# sourceMappingURL=belt.js.map |
@@ -350,1 +350,8 @@ import type { NoInfer } from 'ts-toolbelt/out/Function/NoInfer'; | ||
export declare const try_async: <w_error, w_return>(f_try: () => Promisable<w_return>) => Promise<[w_return, 0] | [undefined, w_error]>; | ||
/** | ||
* Takes the given value and calls the given function with it as the first and only argument | ||
* @param w_value | ||
* @param f_action | ||
* @returns | ||
*/ | ||
export declare const call_with: <w_value, w_return>(w_value: w_value, f_action: (w_use: w_value) => w_return) => w_return; |
@@ -443,2 +443,9 @@ /** | ||
}; | ||
/** | ||
* Takes the given value and calls the given function with it as the first and only argument | ||
* @param w_value | ||
* @param f_action | ||
* @returns | ||
*/ | ||
export const call_with = (w_value, f_action) => f_action(w_value); | ||
//# sourceMappingURL=belt.js.map |
{ | ||
"name": "@blake.regalia/belt", | ||
"version": "0.41.2", | ||
"version": "0.42.0", | ||
"repository": "github:blake-regalia/belt", | ||
@@ -5,0 +5,0 @@ "license": "ISC", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
353724
6616