0

My version should behave identically to curry, but need only work on procedures with fixed arity. Where should I begin in order to create my own version of curry?

> ((my-curry even?) 2)

#t    
> (((my-curry cons) 1) 2)

'(1 . 2)
> ((my-curry cons 1) 2)

'(1 . 2)

I appreciate any help. Thank you!

Exodus1452
  • 29
  • 4
  • Do you know how to find the ariry of a procedure? – Shawn Oct 13 '22 at 15:34
  • The marked duplicate is a poor one; all the answers assume you know the arity of the curried function ahead of time which isn't the case here, and they didn't act like Racket's `curry` function in other respects either. Plus they're standard scheme, not Racket. – Shawn Oct 13 '22 at 16:10

0 Answers0