diff options
-rw-r--r-- | src/list/operation/higher/query.h | 2 | ||||
-rw-r--r-- | test.cc | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/list/operation/higher/query.h b/src/list/operation/higher/query.h index c6c73f4..e93e145 100644 --- a/src/list/operation/higher/query.h +++ b/src/list/operation/higher/query.h @@ -22,7 +22,7 @@ template < template<typename> class Predicate, typename List > -using All = Fold< +using Every = Fold< And, Boolean<true>, Map<Predicate, List> @@ -758,23 +758,23 @@ static_assert( static_assert( std::is_same< tav::Boolean<true>, - tav::All< + tav::Every< tav::Even, tav::List<tav::Int<2>, tav::Int<4>, tav::Int<6>> > >::value, - "(all even? (list 2 4 6)) != #t" + "(every even? (list 2 4 6)) != #t" ); static_assert( std::is_same< tav::Boolean<false>, - tav::All< + tav::Every< tav::Odd, tav::List<tav::Int<1>, tav::Int<2>, tav::Int<3>> > >::value, - "(all odd? (list 1 2 3)) != #f" + "(every odd? (list 1 2 3)) != #f" ); static_assert( |