# All files / src Relude_HList.bs.js

100% Statements 42/42
100% Branches 0/0
100% Functions 17/17
100% Lines 42/42

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
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168

    1x

    2x

    2x

    1x

    1x

    1x

    2x

    1x

    1x

    1x

    1x

    1x

    1x

    1x

    1x
    1x

    1x
    1x
    1x

    1x
    1x
    1x
    1x

    1x

    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x

     'use strict';

    function pure(a) {
      return /* HCons */[
              a,
              /* HNil */0
            ];
    }

    function cons(h, t) {
      return /* HCons */[
              h,
              t
            ];
    }

    function uncons(param) {
      return /* tuple */[
              param[0],
              param[1]
            ];
    }

    function head(param) {
      return param[0];
    }

    function tail(param) {
      return param[1];
    }

    function second(param) {
      return param[1][0];
    }

    function third(param) {
      return param[1][1][0];
    }

    function fourth(param) {
      return param[1][1][1][0];
    }

    function fifth(param) {
      return param[1][1][1][1][0];
    }

    function fromTuple2(param) {
      return /* HCons */[
              param[0],
              /* HCons */[
                param[1],
                /* HNil */0
              ]
            ];
    }

    function fromTuple3(param) {
      return /* HCons */[
              param[0],
              /* HCons */[
                param[1],
                /* HCons */[
                  param[2],
                  /* HNil */0
                ]
              ]
            ];
    }

    function fromTuple4(param) {
      return /* HCons */[
              param[0],
              /* HCons */[
                param[1],
                /* HCons */[
                  param[2],
                  /* HCons */[
                    param[3],
                    /* HNil */0
                  ]
                ]
              ]
            ];
    }

    function fromTuple5(param) {
      return /* HCons */[
              param[0],
              /* HCons */[
                param[1],
                /* HCons */[
                  param[2],
                  /* HCons */[
                    param[3],
                    /* HCons */[
                      param[4],
                      /* HNil */0
                    ]
                  ]
                ]
              ]
            ];
    }

    function toTuple2(param) {
      return /* tuple */[
              param[0],
              param[1][0]
            ];
    }

    function toTuple3(param) {
      var match = param[1];
      return /* tuple */[
              param[0],
              match[0],
              match[1][0]
            ];
    }

    function toTuple4(param) {
      var match = param[1];
      var match$1 = match[1];
      return /* tuple */[
              param[0],
              match[0],
              match$1[0],
              match$1[1][0]
            ];
    }

    function toTuple5(param) {
      var match = param[1];
      var match$1 = match[1];
      var match$2 = match$1[1];
      return /* tuple */[
              param[0],
              match[0],
              match$1[0],
              match$2[0],
              match$2[1][0]
            ];
    }

    var empty = /* HNil */0;

    exports.empty = empty;
    exports.pure = pure;
    exports.cons = cons;
    exports.uncons = uncons;
    exports.head = head;
    exports.tail = tail;
    exports.second = second;
    exports.third = third;
    exports.fourth = fourth;
    exports.fifth = fifth;
    exports.fromTuple2 = fromTuple2;
    exports.fromTuple3 = fromTuple3;
    exports.fromTuple4 = fromTuple4;
    exports.fromTuple5 = fromTuple5;
    exports.toTuple2 = toTuple2;
    exports.toTuple3 = toTuple3;
    exports.toTuple4 = toTuple4;
    exports.toTuple5 = toTuple5;
    /* No side effect */