mirror of https://github.com/deavmi/niknaks
Compare commits
3 Commits
c23d3dba62
...
7adea716c4
Author | SHA1 | Date |
---|---|---|
Tristan B. Velloza Kildaire | 7adea716c4 | |
Tristan B. Velloza Kildaire | b6106883da | |
Tristan B. Velloza Kildaire | 29064908e7 |
|
@ -345,7 +345,6 @@ public struct ConfigEntry
|
|||
{
|
||||
return numeric();
|
||||
}
|
||||
|
||||
else static if(__traits(isSame, T, string[]))
|
||||
{
|
||||
return array();
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
*/
|
||||
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
|
||||
|
@ -25,9 +26,6 @@ template Predicate(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
|
||||
* delegate this will return a new
|
||||
|
|
Loading…
Reference in New Issue