79648005

Date: 2025-06-01 23:03:40
Score: 0.5
Natty:
Report link

facing the same problem, i lately post my short solution:

(define (map-nested f L)

    (define (map-nested-aux x)
      (if (list? x)
           (map map-nested-aux x)
           (apply f (list x))))

    (map map-nested-aux L))

example:

(map-nested sin '(0.1 0.2 (0.3) 0.4))
'(0.09983341664682815 0.19866933079506122 (0.29552020666133955) 0.3894183423086505)
Reasons:
  • Whitelisted phrase (-2): solution:
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same problem
  • Low reputation (0.5):
Posted by: Damien Mattei