aboutsummaryrefslogtreecommitdiff
path: root/src/list/operation
diff options
context:
space:
mode:
Diffstat (limited to 'src/list/operation')
-rw-r--r--src/list/operation/higher/fold.h8
-rw-r--r--src/list/operation/nth.h3
2 files changed, 6 insertions, 5 deletions
diff --git a/src/list/operation/higher/fold.h b/src/list/operation/higher/fold.h
index 7364fe5..3f39b40 100644
--- a/src/list/operation/higher/fold.h
+++ b/src/list/operation/higher/fold.h
@@ -10,10 +10,10 @@ template <
typename Initial,
typename Current
>
-struct Fold {
+struct fold_pair {
typedef Function<
Head<Current>,
- Eval<Fold<Function, Initial, Tail<Current>>>
+ Eval<fold_pair<Function, Initial, Tail<Current>>>
> type;
};
@@ -21,7 +21,7 @@ template <
template<typename, typename> class Function,
typename Initial
>
-struct Fold<Function, Initial, void> {
+struct fold_pair<Function, Initial, void> {
typedef Initial type;
};
@@ -32,7 +32,7 @@ template <
typename Initial,
typename Current
>
-using Fold = Eval<detail::Fold<Function, Initial, Current>>;
+using Fold = Eval<detail::fold_pair<Function, Initial, Current>>;
}
diff --git a/src/list/operation/nth.h b/src/list/operation/nth.h
index 0a56ba3..1ffb1f0 100644
--- a/src/list/operation/nth.h
+++ b/src/list/operation/nth.h
@@ -1,8 +1,9 @@
#ifndef TYPEASVALUE_SRC_LIST_OPERATION_NTH_H_
#define TYPEASVALUE_SRC_LIST_OPERATION_NTH_H_
-#include "operation/math.h"
#include "drop.h"
+#include "conditional/if.h"
+#include "operation/math.h"
namespace tav {