Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

partial application is not working #35

Open
21it opened this issue Mar 8, 2020 · 4 comments
Open

partial application is not working #35

21it opened this issue Mar 8, 2020 · 4 comments

Comments

@21it
Copy link

21it commented Mar 8, 2020

partial application is not working

Interactive Elixir (1.10.2) - press Ctrl+C to exit (typ
iex(1)> use Quark
Quark.Pointfree
iex(2)> constant(1)
** (CompileError) iex:2: undefined function constant/1
@OvermindDL1
Copy link

Things like constant and first and others are arity 2 only. I'm unsure if that's intended but using Quark.SKI.k directly is partially applied.

@21it
Copy link
Author

21it commented Mar 9, 2020

Thanks! I think without currying those combinators are pretty useless, because usually they are used in places like this (just dummy example)

some_either 
|> bimap(const(false), const(true))

@OvermindDL1
Copy link

I do agree. It's a simple case of adding a few defdelegates in two different modules (both Quark and Quark.SKI), you should PR it? :-)

@21it
Copy link
Author

21it commented Mar 9, 2020

Thanks for suggestion, but I leave this job to someone else :)
I'm doing my own functional library instead 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants