JanetDocsSourcePlaygroundI'm feeling luckyCommunityGitHub sign in

merge-module

core-api


    function
    boot.janet on line 3107, column 1

    (merge-module target source &opt prefix export only)

    Merge a module source into the `target` environment with a 
    `prefix`, as with the `import` macro. This lets users emulate the 
    behavior of `import` with a custom module table. If `export` is 
    truthy, then merged functions are not marked as private. Returns 
    the modified target environment. If a tuple or array `only` is 
    passed, only merge keys in `only`.


0 examplesSign in to add an example
Loading...