I share a tip with you that allows us to import several elements (function, value etc.) from a single module at once.
Let be the following module:
module ModuleA = {
let valueA = "A";
let functionA = a => a;
let valueB = "B";
let functionB = b => b;
let valueC = "C";
let functionC = c => c;
};
If I want to import *A and *B but not *C, I do:
let (valueA, functionA, valueB, functionB) = ModuleA.(valueA, functionA, valueB, functionB);
Wich is equivalent to:
let valueA = ModuleA.valueA;
let functionA = ModuleA.functionA;
let valueB = ModuleA.valueB;
let functionB = ModuleA.functionB;