Practice · 3 of 3
Count with a Fold
CHALLENGE
Difficulty: advanced+25 XP
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.
Press Submit to check your solution.
Back to lesson: Practice: Packs and Folds