From: Francesco Montanari <fmnt@fmnt.info>
To: 42415@debbugs.gnu.org
Subject: bug#42415: Remove unused parallel mapper argument
Date: Sat, 18 Jul 2020 16:01:22 +0200 [thread overview]
Message-ID: <abca2b7a-8617-3a02-4021-7ab02ab5e50e@fmnt.info> (raw)
From 116cb3cc3ea8fc72fa99d0405ecbe04a2d0f3d96 Mon Sep 17 00:00:00 2001
From: Francesco Montanari <fmnt@fmnt.info>
Date: Sat, 18 Jul 2020 15:44:38 +0200
Subject: [PATCH] Remove unused parallel mapper argument
* module/ice-9/threads.scm (par-mapper, par-map, par-for-each): Remove
unused `mapper` argument in `par-mapper` procedure.
This change does not modify the procedures behavior.
---
module/ice-9/threads.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/module/ice-9/threads.scm b/module/ice-9/threads.scm
index c42bd266f..5b5ebaf4f 100644
--- a/module/ice-9/threads.scm
+++ b/module/ice-9/threads.scm
@@ -279,7 +279,7 @@ terminates, unless the target @var{thread} has
already terminated."
(lambda (v ...)
b0 b1 ...)))
-(define (par-mapper mapper cons)
+(define (par-mapper cons)
(lambda (proc . lists)
(let loop ((lists lists))
(match lists
@@ -290,8 +290,8 @@ terminates, unless the target @var{thread} has
already terminated."
(_
'())))))
-(define par-map (par-mapper map cons))
-(define par-for-each (par-mapper for-each (const *unspecified*)))
+(define par-map (par-mapper cons))
+(define par-for-each (par-mapper (const *unspecified*)))
(define (n-par-map n proc . arglists)
(let* ((m (make-mutex))
--
2.20.1
reply other threads:[~2020-07-18 14:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=abca2b7a-8617-3a02-4021-7ab02ab5e50e@fmnt.info \
--to=fmnt@fmnt.info \
--cc=42415@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).