# All files / src/extensions Relude_Extensions_Apply.bs.js

82.76% Statements 48/58
100% Branches 0/0
54.55% Functions 12/22
82.76% Lines 48/58

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156

    31x
    31x

    160x
    160x
    160x
    160x
    160x
    160x
    160x
    160x
    160x
    1x
    1x

    160x
    1x
    1x

    160x
    1x
    1x

    160x
    1x

    160x
    1x

    160x
    1x

    160x
    1x

    160x

    80x
    80x
    80x
    80x
    80x
    80x
    80x
    80x
    80x

    80x

    80x

    80x

    80x

    80x

    80x

    80x

    80x
    80x

    31x
    31x

     'use strict';

    var Curry = require("bs-platform/lib/js/curry.js");
    var Functions$BsAbstract = require("bs-abstract/lib/js/src/functions/Functions.bs.js");

    function ApplyExtensions(A) {
      var BsApplyExtensions = Functions$BsAbstract.Apply(A);
      var applyFirst = BsApplyExtensions.apply_first;
      var applySecond = BsApplyExtensions.apply_second;
      var map2 = BsApplyExtensions.lift2;
      var map3 = BsApplyExtensions.lift3;
      var map4 = BsApplyExtensions.lift4;
      var map5 = BsApplyExtensions.lift5;
      var tuple2 = BsApplyExtensions.apply_both;
      var tuple3 = function (fa, fb, fc) {
        return Curry._4(map3, (function (a, b, c) {
                      return /* tuple */[
                              a,
                              b,
                              c
                            ];
                    }), fa, fb, fc);
      };
      var tuple4 = function (fa, fb, fc, fd) {
        return Curry._5(map4, (function (a, b, c, d) {
                      return /* tuple */[
                              a,
                              b,
                              c,
                              d
                            ];
                    }), fa, fb, fc, fd);
      };
      var tuple5 = function (fa, fb, fc, fd, fe) {
        return Curry._6(map5, (function (a, b, c, d, e) {
                      return /* tuple */[
                              a,
                              b,
                              c,
                              d,
                              e
                            ];
                    }), fa, fb, fc, fd, fe);
      };
      var mapTuple2 = function (f, param) {
        return Curry._3(map2, f, param[0], param[1]);
      };
      var mapTuple3 = function (f, param) {
        return Curry._4(map3, f, param[0], param[1], param[2]);
      };
      var mapTuple4 = function (f, param) {
        return Curry._5(map4, f, param[0], param[1], param[2], param[3]);
      };
      var mapTuple5 = function (f, param) {
        return Curry._6(map5, f, param[0], param[1], param[2], param[3], param[4]);
      };
      return {
              BsApplyExtensions: BsApplyExtensions,
              applyFirst: applyFirst,
              applySecond: applySecond,
              map2: map2,
              map3: map3,
              map4: map4,
              map5: map5,
              tuple2: tuple2,
              tuple3: tuple3,
              tuple4: tuple4,
              tuple5: tuple5,
              mapTuple2: mapTuple2,
              mapTuple3: mapTuple3,
              mapTuple4: mapTuple4,
              mapTuple5: mapTuple5
            };
    }

    function ApplyInfix(A) {
      var BsApplyExtensions = Functions$BsAbstract.Apply(A);
      var applyFirst = BsApplyExtensions.apply_first;
      var applySecond = BsApplyExtensions.apply_second;
      var map2 = BsApplyExtensions.lift2;
      var map3 = BsApplyExtensions.lift3;
      var map4 = BsApplyExtensions.lift4;
      var map5 = BsApplyExtensions.lift5;
      var tuple2 = BsApplyExtensions.apply_both;
      var tuple3 = function (fa, fb, fc) {
        return Curry._4(map3, (function (a, b, c) {
                      return /* tuple */[
                              a,
                              b,
                              c
                            ];
                    }), fa, fb, fc);
      };
      var tuple4 = function (fa, fb, fc, fd) {
        return Curry._5(map4, (function (a, b, c, d) {
                      return /* tuple */[
                              a,
                              b,
                              c,
                              d
                            ];
                    }), fa, fb, fc, fd);
      };
      var tuple5 = function (fa, fb, fc, fd, fe) {
        return Curry._6(map5, (function (a, b, c, d, e) {
                      return /* tuple */[
                              a,
                              b,
                              c,
                              d,
                              e
                            ];
                    }), fa, fb, fc, fd, fe);
      };
      var mapTuple2 = function (f, param) {
        return Curry._3(map2, f, param[0], param[1]);
      };
      var mapTuple3 = function (f, param) {
        return Curry._4(map3, f, param[0], param[1], param[2]);
      };
      var mapTuple4 = function (f, param) {
        return Curry._5(map4, f, param[0], param[1], param[2], param[3]);
      };
      var mapTuple5 = function (f, param) {
        return Curry._6(map5, f, param[0], param[1], param[2], param[3], param[4]);
      };
      var ApplyExtensions = {
        BsApplyExtensions: BsApplyExtensions,
        applyFirst: applyFirst,
        applySecond: applySecond,
        map2: map2,
        map3: map3,
        map4: map4,
        map5: map5,
        tuple2: tuple2,
        tuple3: tuple3,
        tuple4: tuple4,
        tuple5: tuple5,
        mapTuple2: mapTuple2,
        mapTuple3: mapTuple3,
        mapTuple4: mapTuple4,
        mapTuple5: mapTuple5
      };
      var $less$star$great = A.apply;
      return {
              ApplyExtensions: ApplyExtensions,
              $less$star$great: $less$star$great,
              $less$star: applyFirst,
              $star$great: applySecond
            };
    }

    exports.ApplyExtensions = ApplyExtensions;
    exports.ApplyInfix = ApplyInfix;
    /* Functions-BsAbstract Not a pure module */