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
Maplist using a lambda on a lists of dicts doesn't work as expected
Help!
2
48
May 16, 2025
How to turn a list of tokens into a list of unbound variables?
Help!
4
601
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