Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about maplist

Read more about maplist

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - maplist

Prolog maplist on inner term?

How to use maplist on inner term? Assuming the KB is: gate(not(o), i). gate(not(i), o). gate(and(o, i), o). gate(and(i, o), o). gate(and(B, B), B). bits([i,o,o,i,i]). The following is not working:...
test-img

Mustafa

list

prolog

functor

maplist

Votes: 0

Answers: 1

Latest Answer

With a helper predicate: not(A, Z) :- gate(not(A), Z). ?- bits(BITS), maplist(not, BITS, ANS). ANS = [o, i, i, o, o], BITS = [i, o, o, i, i] But if you are going to add two lines of helper, sk...
test-img

TessellatingHeckler

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved