Skip to main content

Practice ยท 3 of 3

Count with a Fold

Implement countTrue(args...) returning how many of its boolean-convertible arguments are true, and hasNone(args...) returning whether all are false. Both must survive an empty pack.

Difficulty: advanced

Back to lesson: Practice: Packs and Folds