aboutsummaryrefslogtreecommitdiff
path: root/src/list/operation/higher/map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/list/operation/higher/map.h')
-rw-r--r--src/list/operation/higher/map.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/list/operation/higher/map.h b/src/list/operation/higher/map.h
index ac214b7..cc30355 100644
--- a/src/list/operation/higher/map.h
+++ b/src/list/operation/higher/map.h
@@ -5,6 +5,8 @@
namespace tav {
+namespace detail {
+
template <
template<typename> class Function,
typename List
@@ -21,10 +23,18 @@ class Map {
>;
public:
- typedef Eval<Fold<function_wrapper, void, List>> type;
+ using type = tav::Fold<function_wrapper, void, List>;
};
}
+template <
+ template<typename> class Function,
+ typename List
+>
+using Map = Eval<detail::Map<Function, List>>;
+
+}
+
#endif // TYPEASVALUE_SRC_LIST_OPERATION_HIGHER_MAP_H_