mirror of https://github.com/deavmi/niknaks
Merge branch 'master' into feature/views
This commit is contained in:
commit
a2fc15aac1
|
@ -345,7 +345,6 @@ public struct ConfigEntry
|
||||||
{
|
{
|
||||||
return numeric();
|
return numeric();
|
||||||
}
|
}
|
||||||
|
|
||||||
else static if(__traits(isSame, T, string[]))
|
else static if(__traits(isSame, T, string[]))
|
||||||
{
|
{
|
||||||
return array();
|
return array();
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
*/
|
*/
|
||||||
module niknaks.functional;
|
module niknaks.functional;
|
||||||
|
|
||||||
import std.traits : isAssignable;
|
import std.traits : isAssignable, isFunction, isDelegate, ParameterTypeTuple, ReturnType;
|
||||||
|
import std.functional : toDelegate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Predicate for testing an input type
|
* Predicate for testing an input type
|
||||||
|
@ -25,9 +26,6 @@ template Predicate(T)
|
||||||
alias Predicate = bool delegate(T);
|
alias Predicate = bool delegate(T);
|
||||||
}
|
}
|
||||||
|
|
||||||
import std.traits : isFunction, isDelegate, ParameterTypeTuple, isFunction, ReturnType;
|
|
||||||
import std.functional : toDelegate;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Given the symbol of a function or
|
* Given the symbol of a function or
|
||||||
* delegate this will return a new
|
* delegate this will return a new
|
||||||
|
|
Loading…
Reference in New Issue