Git Product home page Git Product logo

Comments (5)

infradig avatar infradig commented on July 28, 2024 1

Ok, fixed. Nice little dictionary.

tpl
?- [quotes].
true.
?- main.
"Winning isn’t everything, but wanting to win is."-"Vince Lombardi"
true

from trealla.

Jean-Luc-Picard-2021 avatar Jean-Luc-Picard-2021 commented on July 28, 2024

I don't know whether wall is some de facto standard.
This is a little ad-hoc from one of my systems.

Also I have edited the source code just now. In case
wall gives some negative number, who knows?

Its mod/2 now:

?- X is -1 mod 5.
X = 4.

from trealla.

flexoron avatar flexoron commented on July 28, 2024

That was located out of sight, Jean-Luc.
Thank you for this impulse: X = (Y is B+_)

$ cat is.pl
{_ is _+1}.
{_ is _+2}.
{_ is _+3}.
{_ is _+4}.
{_ is _+5}.
main :- between(1,5,N), call_nth({X}, N),
        X = (Y is B+_),
        write('+'), between(1,3,B), X, write(Y), fail.

$ tpl
?- "is".
   true.
?- main.
+234+345+456+567+678   false.
?-

from trealla.

infradig avatar infradig commented on July 28, 2024

from trealla.

Jean-Luc-Picard-2021 avatar Jean-Luc-Picard-2021 commented on July 28, 2024

I can consult and run it now.
Maybe the code itself needs a little bit more cuts.

from trealla.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.