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
1301
January 30, 2020
Using maplist with many arguments: Example
Example - Discussion
2
1242
December 15, 2020
Given a list of numbers, returns a list such that the numbers in the input are replaced by the result of num2list,
Help!
12
1088
February 19, 2019
Bracy part of `{X}/[Y,Z]>>foo(X,Y,Z)` - does it have any effect?
Help!
discussion
4
391
May 13, 2020
I know this is not a good question but
Help!
how-to
11
610
December 18, 2020