|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
defining two functions in terms of oneanother
A brain-twister: How does one define these two functions of one another? Any ideas?
(define first (lambda (q w e) (q (w e)))) (define second(lambda (q w)(lambda (e) (q (w e))))) |
|
#2
|
||||
|
||||
|
Lisp? What exactly do the two functions do? then maybe i can recreate them...
Mark. |
|
#3
|
|||
|
|||
|
Code:
def first(q, w, e):
return q(w, e)
def second(q, w):
return (lambda e: q(w, e))
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > defining two functions in terms of oneanother |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|