From 8e4e3466694e5bef43f1308296a76086a7db453d Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 17 Feb 2015 18:55:08 +0100 Subject: Expressed `Take` and `Drop` in terms of new `Section` operation * unifies the common functionality between `Take` and `Drop` * renamed `basic.h` to `length.h` as it only contains the `Length` implementation --- src/list/operation/higher/fold.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/list/operation/higher/fold.h') diff --git a/src/list/operation/higher/fold.h b/src/list/operation/higher/fold.h index 3f39b40..38c3554 100644 --- a/src/list/operation/higher/fold.h +++ b/src/list/operation/higher/fold.h @@ -8,12 +8,12 @@ namespace detail { template < template class Function, typename Initial, - typename Current + typename Pair > struct fold_pair { typedef Function< - Head, - Eval>> + Car, + Eval>> > type; }; @@ -30,9 +30,9 @@ struct fold_pair { template < template class Function, typename Initial, - typename Current + typename List > -using Fold = Eval>; +using Fold = Eval>; } -- cgit v1.2.3