Documentation Prolog Predicate Reference lists replicate/3

replicate/3

Generate list by replicating an element.

Description

replicate( ?term, +integer, ?list )

replicate(Term, Times, List) is true if and only if List is a list made up of the element Term replicated Times times.

Implementation