// Generated by ReScript, PLEASE EDIT WITH CARE

import * as Belt_Option from "rescript/lib/es6/belt_Option.js";

function testTuple(param) {
  return param[0] + param[1] | 0;
}

function computeArea(param) {
  return Math.imul(Math.imul(param[0], param[1]), Belt_Option.mapWithDefault(param[2], 1, (function (n) {
                    return n;
                  })));
}

function computeAreaWithIdent(param) {
  return Math.imul(Math.imul(param[0], param[1]), Belt_Option.mapWithDefault(param[2], 1, (function (n) {
                    return n;
                  })));
}

function computeAreaNoConverters(param) {
  return Math.imul(param[0], param[1]);
}

function coord2d(x, y) {
  return [
          x,
          y,
          undefined
        ];
}

function getFirstName(param) {
  return param[0].name;
}

function marry(first, second) {
  return [
          first,
          second
        ];
}

function changeSecondAge(param) {
  var second = param[1];
  return [
          param[0],
          {
            name: second.name,
            age: second.age + 1 | 0
          }
        ];
}

var origin = [
  0,
  0,
  0
];

export {
  testTuple ,
  origin ,
  computeArea ,
  computeAreaWithIdent ,
  computeAreaNoConverters ,
  coord2d ,
  getFirstName ,
  marry ,
  changeSecondAge ,
}
/* No side effect */
