Deprecate this module
Now that SWI-Prolog allows large numbers to be written with thousands
separators, there's no need for this pack. I'll leave it lying around
for those who are already using it or for those using on a Prolog
other than SWI.
Re-implement with function_expansion module
Let that module handle all the gritty details about rewriting terms.
This module can focus on the simple goal of multiplying a few decimal
Point README to full PlDoc docs
Bump version to circumvent caching
Move packs to packs.ndrix.com
Bump version number
Add PlDoc documentation
Make cuts green
Make it clearer that each clause is independent of the others.
Document why var/1 clause exists
Without this clause, goal_expansion_loop fails when T is a free
variable. We need it to succeed so that we can expand each argument
Use \= rather than \+ ... =
Add unit tests
Arrange so 'gift' can help manage this package
Make example.pl executable
Don't include /tmp/ in pack bundle
Create an initial README file
Give a quick example of usage and installation on the
GitHub project home page.
Correct download location URL
Include download location
Prepare necessary files for a pack
Include an example with billions
Avoid repetitive expansions
There's no need to call goal_expansion_loop if the term to expand is a
conjunction or disjunction. goal_expansion will visit each inner goal
separately. We can do our macro expansion at that time.
The previous definition was far more complicated than it needed to be.
Implement n/2 and n/3 in terms of n/4
Rename library and remove expression support
More precise comment about n's arity
Add factorial example
First draft of n macros for easier numbers
It supports n(1,000) and n(2,123,456), etc. It also supports
arithmetic expressions inside like n(2*7 + 4).