Summary
Append-map sideeffects
Metadata
- Id: 46a912b018d8ad664feec838e0c46a4fd3802d86
- Trac id: 1834
- Type: defect
- Reporter: Idiomdrottning
- Owner:
- Cc:
- Status: closed
- Component: extensions
- Estimated difficulty:
- Resolution: invalid
- Priority: critical
- Milestone: someday
- Version: 5.3.0
- Changetime: 2024-03-07 07:32:07 UTC
- Created: 2024-03-07 07:28:50 UTC
- Keywords: srfi-1
Description
(require-extension srfi-1) (define (pz lis)
(append-map
(lambda (x) (map (lambda (y)
(print y)
(cons x y))
(pz (remove (lambda (y) (eq? y x)) lis))))
lis))
(pz '(a b c d))
- ; this is on 5.3.0.
- ; prints nothing. But if it's map instead of append-map, it prints stuff.
Changes and comments
[2024-03-07 07:32:07 UTC] Idiomdrottning changed status from new to closed
[2024-03-07 07:32:07 UTC] Idiomdrottning set resolution to invalid
[2024-03-07 07:32:07 UTC] Idiomdrottning wrote:
Pebcak as per ushe.