From 27b991ea23f71093b274b3ff1692c47274eb4d1d Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 26 Jan 2015 19:19:45 +0100 Subject: Redefined `Length` in terms of `Apply` and `Fold` * this function illustrates the use case `Apply` is currently intended for * moved `Take` and `Nth` into separate files to resolve header resolution conflicts --- src/function/apply.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/function/apply.h') diff --git a/src/function/apply.h b/src/function/apply.h index 6012a01..8e780e0 100644 --- a/src/function/apply.h +++ b/src/function/apply.h @@ -3,6 +3,9 @@ #include +#include "list/list.h" +#include "list/operation/nth.h" + namespace tav { namespace detail { @@ -45,8 +48,6 @@ template < typename... Arguments > struct Apply { - typedef typename tav::List::type argument_list; - template using variadic_type = Function< typename detail::resolve_placeholder< -- cgit v1.2.3