From cb1ee55373e5efd1441664ec4e6942d4ace5e368 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 21 Jan 2015 16:55:17 +0100 Subject: Implemented `Contains` in terms of `Any` * as its name implies this _function_ simplifies checking if a specific value is contained within a given list * updated `Map` to actually resolve the provided _function_ --- src/list/operation/higher/misc.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/list/operation/higher/misc.h') diff --git a/src/list/operation/higher/misc.h b/src/list/operation/higher/misc.h index 1eacaaa..feec7de 100644 --- a/src/list/operation/higher/misc.h +++ b/src/list/operation/higher/misc.h @@ -17,7 +17,10 @@ class Map { typename Previous > struct function_wrapper { - typedef Cons, Previous> type; + typedef Cons< + typename Function::type, + Previous + > type; }; public: -- cgit v1.2.3