logicjs-list-spread

    1.0.0 • Public • Published

    LogicJS list spread

    This is an extension to the beautiful logicjs logic programming library. This extension enables you to use spreads of variables in lists, which enables you to use common Prolog idioms.

    eq(list(1, 2, ...x), list(1, 2, 3, 4, 5)) // => x=list(3, 4, 5)

    Installation

    npm install logicjs-list-spread
    

    Currently you must import it through register, which overrides some functions in logicjs itself.

    require('logicjs-list-spread/register')

    License

    MIT

    Contribution

    Welcome! Submit an issue or pull request!

    Install

    npm i logicjs-list-spread

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    4.4 kB

    Total Files

    4

    Last publish

    Collaborators

    • cie