SWI-Prolog
Value_list/3 - Construct a list of same value
Nice to know
jan
April 19, 2022, 9:39am
2
What about this?
value_list(Length,Value,L) :- length(L,Length), maplist(=(Value),L).
show post in topic
Related topics
Topic
Replies
Views
Activity
Lambda
General
3
70
October 28, 2024
How to turn a list of tokens into a list of unbound variables?
Help!
4
600
December 16, 2021
Ensuring variables match nothing else before, so is it CLP? Not possible in Tau Prolog?
Help!
0
307
October 5, 2019
An existential version of maplist?
Predicate
3
515
June 30, 2020
Why does my predicate always return true instead of binding the variables?
General
15
1034
September 3, 2023