arturo-lang / arturo

Simple, expressive & portable programming language for efficient scripting
http://arturo-lang.io
MIT License
696 stars 32 forks source link

[Numbers\factors] `.prime` not working for Web builds #439

Open github-actions[bot] opened 2 years ago

github-actions[bot] commented 2 years ago

[Numbers\factors] .prime not working for Web builds

https://github.com/arturo-lang/arturo/blob/5ac436015372367bc4f623745bcf0487a39d7108/src/library/Numbers.nim#L624

                    push(newBlock(factors(x.i).map((x)=>newInteger(x))))
            else:
                when defined(WEB) or not defined(NOGMP):
                    # TODO(Numbers\factors) `.prime` not working for Web builds
                    # labels: web,enhancement
                    if prime:
                        when not defined(WEB):
                            push(newBlock(primeFactorization(x.bi).map((x)=>newInteger(x))))
                        else:
                            discard
                    else:
                        push(newBlock(factors(x.bi).map((x)=>newInteger(x))))

0ca472e1c6dd8f40931670d8745511714c3b535b

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

Closing issue as stale.

stale[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.