export const rulePipe = (...fns) => (value) => {
    let i = 0;
    while (i <= fns.length) {
        const result = fns[i]?.(value);
        if (result) {
            return result;
        }
        i++;
    }
};
