function flatMapOps(array, opMapper) {
        var out = [];
        for (var _i = 0, array_1 = array; _i < array_1.length; _i++) {
            var em = array_1[_i];
            opEach(opMapper(em), function (_) { return out.push(_); });
        }
        return out;
    }
/**
    Map an array to Ops, then filter out null values.
    e.g.:
        flatMapOps([1, 2, 3, 4], _ => opIf(_ % 2 === 0, () => _ / 2)) ==> [1, 2]
    */
Map an array to Ops, then filter out null values.
Map an array to Ops then filter out null values .
function flatMapOps(array, opMapper) {
        var out = [];
        for (var _i = 0, array_1 = array; _i < array_1.length; _i++) {
            var em = array_1[_i];
            opEach(opMapper(em), function (_) { return out.push(_); });
        }
        return out;
    }
function flatMapOps ( array , opMapper ) { var out = [ ] ; for ( var _i = 0 , array_1 = array ; _i < array_1 . length ; _i ++ ) { var em = array_1 [ _i ] ; opEach ( opMapper ( em ) , function ( _ ) { return out . push ( _ ) ; } ) ; } return out ; }
Map an array to Ops, then filter out null values.
Map an array to Ops then filter out null values .