79238810

Date: 2024-11-30 04:31:47
Score: 0.5
Natty:
Report link

I like to use maplist/2 with =/2 for this. For example,

| ?- length(L, 3), maplist(=(a), L).

L = [a,a,a]

yes
| ?- length(L, 9), maplist(=(abc), L).

L = [abc,abc,abc,abc,abc,abc,abc,abc,abc]

yes
| ?-
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: sail0r