I'd say it's going to be this:
B ModusPonens<A, B>(Func<A, B> A_implies_B, A proof_of_A) { A_implies_B(proof_of_A); }
In the meantime, I'll eagerly await your next article! :)
That's right. Nice work! So modus ponens in logic corresponds to function application in programming. I'll try to follow up with some more interesting correspondences soon. Thanks for responding!
Woohoo! Thanks, Brian. Looking forward to the next instalment. :)
Part 2 is up here. Thanks for the encouragement to get it done!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'd say it's going to be this:
In the meantime, I'll eagerly await your next article! :)
That's right. Nice work! So modus ponens in logic corresponds to function application in programming. I'll try to follow up with some more interesting correspondences soon. Thanks for responding!
Woohoo! Thanks, Brian. Looking forward to the next instalment. :)
Part 2 is up here. Thanks for the encouragement to get it done!