Open jethrolarson opened 8 years ago
Yes. You are right. But it is a fine curry function :sweat:
Please
On Fri, Apr 15, 2016, 12:15 PM Texas Toland notifications@github.com wrote:
Haha I'd be willing to rewrite it if you want.
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/paldepind/union-type/issues/37#issuecomment-210603699
Ok :smile: We could copy and paste the curry function into union-type.
I took a look and it'd be better to implement the subset of functionality you're using.
I would highly approve of this. Also, it would be really nice to provide the Ramda.T
function on this lib. It could be called Type.Any
, which would read really well imo.
var List = Type({
Nil: {},
Cons: {
head: Type.Any,
tail: undefined
}
});
Maybe even a Type.Self
alias which is just undefined
for recursive types.
I know you're cherry picking the curry function but ramda is a bit big for just the one function.