usually it applies to a collection e.g. List

in Scala there is one - that takes a function that returns a boolean. e.g.

List(1,2,3).forall(x => x < 3)

which is equivalent to a foldLeft ( I think)

On Wednesday, 4 February 2015 at 14:52:32 UTC, Andrej Mitrovic wrote:
On 2/4/15, Kingsley via Digitalmars-d-announce
<> wrote:
A couple of issues came out of the challenge regarding
familiarity with syntax and then spending time hunting down the
docs - is there a forall in D?

What would forall do?

Reply via email to