]> Repositorios git - scryer-prolog.git/commit
ADDED: popcount(+Integer)
authorMarkus Triska <[email protected]>
Thu, 17 Jun 2021 18:18:01 +0000 (20:18 +0200)
committerMarkus Triska <[email protected]>
Thu, 17 Jun 2021 18:18:36 +0000 (20:18 +0200)
commitee393c66dd1e68b33e0f08f17ef39f1b9d9404ca
treec5c37c1fe07aeb240871c48f5fde1f42a76d6f82
parent176daeec0314571b4aca3973601af7c65dc8b869
ADDED: popcount(+Integer)

Example:

    ?- X #= popcount(3+5).
       X = 1.

This builds on #986 provided by @Regan-Koopmans. Many thanks!
src/lib/clpz.pl