From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Is there a function for auto currying in Elisp? Date: Thu, 21 Dec 2017 12:22:23 -0500 Message-ID: <06c04109-33b2-29ed-ac77-4a81544608ec@gmail.com> References: <87tvwki1oe.fsf@petton.fr> <87r2rohxey.fsf@petton.fr> <1c536593-851a-19b4-3941-a7e9c624ad8c@gmail.com> <87o9mshvee.fsf@petton.fr> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1513876877 26476 195.159.176.226 (21 Dec 2017 17:21:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 21 Dec 2017 17:21:17 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 To: Nicolas Petton , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 21 18:21:13 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eS4Wu-0006VE-H2 for ged-emacs-devel@m.gmane.org; Thu, 21 Dec 2017 18:21:12 +0100 Original-Received: from localhost ([::1]:60415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eS4Ys-0004t2-S0 for ged-emacs-devel@m.gmane.org; Thu, 21 Dec 2017 12:23:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eS4Y6-0004rg-GB for emacs-devel@gnu.org; Thu, 21 Dec 2017 12:22:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eS4Y5-0005Vs-Pw for emacs-devel@gnu.org; Thu, 21 Dec 2017 12:22:26 -0500 Original-Received: from mail-qk0-x231.google.com ([2607:f8b0:400d:c09::231]:39941) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eS4Y5-0005VA-MN for emacs-devel@gnu.org; Thu, 21 Dec 2017 12:22:25 -0500 Original-Received: by mail-qk0-x231.google.com with SMTP id q14so19011170qke.7 for ; Thu, 21 Dec 2017 09:22:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=+1GGiMpMAcXWKGwyLmPdhtxW6NxxFmOrqPyoTPvDZlQ=; b=iDNvpHZfWp8Ye6pYCMgNhhYJQI+ocg58OzZ6JR5wEYYRN+MN+Ik4uzgn3Tmidu1B9I Vz4Lm3NfjglEPv8nnC8SiU+ieamSLXAngMTZf/eYqiTkOJ3Fyxn0cEE35Rds3bY0WX5C LNSJp6bXAt//JiyYq2fEUg5cm0Lm0qLXirknhnl8sKCcrhAaqBRd7tGbu6UfOsPAmF46 Fz24wC8aC0GOmB0NTGY8wlY71g57UBmS9Krm5NYCjyfVMBKr2gF5A5fs+Q4/+6CUzuSn iUpo0E4E/eKxYzyEtuPD7hwV5H578KcMMIfxH4LE3lLRAXh/jMOeKLA83vYBCu0tPeiw /Zew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+1GGiMpMAcXWKGwyLmPdhtxW6NxxFmOrqPyoTPvDZlQ=; b=EZiH6aZpC38ALlixvwXjmyXbHbEJuUsxHNjJTfhrl11CcvB49FgPW3d3S6T+tQwYbl U8tLrPvba1FeFcffJfz+f0p3OuOj321synsflzdBN+w3kj1vYiFtwVqQqhGfA407Oqi7 +HTfqKKvL+wx76DlLXg+lv8/8K4mlSKxzIQQQONRm7fwCxeUbWqsb0ot7aRFJk7SWeC5 +o9EAZ5ptzNDLppEsKF1fuZjO9liWalEpBdYKUSwoGwtt72FnNs7VCPdhZoBBMIHHlKj uYl5a5+Pwa6pLGXokhu39ffJc4SDyv3gBE7cJN5H2wJcuim3NmxloUvf+msSo/pgz1fH dSMg== X-Gm-Message-State: AKGB3mIdDFYBYk9Bmz15v1v+Qpq8N0qtvlVq5V5DBLWvtCwmvt+/nwWL Yda1i9SzyfyfzZ8txjhsXmYBS5y3 X-Google-Smtp-Source: ACJfBotgB2zPrzVdTiXNWP2rw/DpPOCZDMBGo7b2lAuAkcwQrzl5WgK/d9NOFxOlbECt2jAHullogA== X-Received: by 10.55.22.21 with SMTP id g21mr14597985qkh.343.1513876944986; Thu, 21 Dec 2017 09:22:24 -0800 (PST) Original-Received: from ?IPv6:2601:184:4180:66e7:e873:71b4:4fbc:d9e2? ([2601:184:4180:66e7:e873:71b4:4fbc:d9e2]) by smtp.gmail.com with ESMTPSA id b10sm12485886qti.76.2017.12.21.09.22.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Dec 2017 09:22:24 -0800 (PST) In-Reply-To: <87o9mshvee.fsf@petton.fr> Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:221310 Archived-At: On 2017-12-21 11:56, Nicolas Petton wrote: > Clément Pit-Claudel writes: > >> apply-partially is the closest you'll get, I think. > > That's my thought as well, but it's not the same thing. It may be worth > adding a new `curry' function then. It's tricky to know what exactly curry should do, though, because of &optional and &rest arguments. Also, won't you need a funcall for each application of your curried function? Clément.