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
How do I use an operation on every element of a list?
Help!
how-to
5
1287
January 30, 2020
Using maplist with many arguments: Example
Example - Discussion
2
1235
December 15, 2020
Forall and a terminology question
Help!
9
584
October 11, 2023
Lambda
General
3
70
October 28, 2024
I know this is not a good question but
Help!
how-to
11
600
December 18, 2020