无论如何不写这个:
import {replace_in_mtstr, tot_width, rationalize, eval_expression, ascii_to_latex, latex_to_ascii, getIndicesOf, cleanIndices, change_sign, exponentiate, multiply_grouped_nodes, flip_fraction, add_brackets, are_of_type, any_of_type, have_same_ancestors, have_same_type, have_same_text, have_single_factor, have_same_denom, are_same_terms, get_prev, get_next, get_all_next, has_op, parse_mtstr, parse_poly, prepare} from "./functions";
在 ES6 中?这些是不同文件中的所有导出函数。我知道的关闭的事情是import * as object from 'file';
。但是,我希望函数可以直接使用,而不是在对象内部。这在 ES6 中可能吗?