From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Petton Newsgroups: gmane.emacs.devel Subject: Re: seq-thread-first/last Date: Fri, 30 Jan 2015 13:25:05 +0100 Message-ID: <87d25we9r2.fsf@petton.fr> References: <878uglwmra.fsf@petton.fr> <87iofoof2j.fsf@udel.edu> <87k304ef9k.fsf@petton.fr> <87iofozfry.fsf_-_@web.de> <87fvaseaxe.fsf@petton.fr> <87wq44a2f3.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422620736 5379 80.91.229.3 (30 Jan 2015 12:25:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Jan 2015 12:25:36 +0000 (UTC) Cc: Michael Heerdegen , Nicolas Petton , emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 30 13:25:35 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YHAdi-0000Q6-3j for ged-emacs-devel@m.gmane.org; Fri, 30 Jan 2015 13:25:34 +0100 Original-Received: from localhost ([::1]:36350 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHAdh-0008Ul-8E for ged-emacs-devel@m.gmane.org; Fri, 30 Jan 2015 07:25:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHAdU-0008UY-25 for emacs-devel@gnu.org; Fri, 30 Jan 2015 07:25:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHAdH-0005lI-Sa for emacs-devel@gnu.org; Fri, 30 Jan 2015 07:25:20 -0500 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:49510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHAdH-0005l4-Pa for emacs-devel@gnu.org; Fri, 30 Jan 2015 07:25:07 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id AC158207DA for ; Fri, 30 Jan 2015 07:25:07 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Fri, 30 Jan 2015 07:25:07 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:references:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-type; s= smtpout; bh=rAtEPs3G4D0ZPg98IeHhQMrv1g0=; b=SvElIqIO7BqFR3kM4kEI u1JPtq1maXKq9iiI/pjjfvwkprkHwSMOKG3BBEMmYrS1gniWgsIJUAluk7KqXk7s 0Z8191baTXkcsnCyy4JZO6en94DXIhjCpX4sKpl5QfTzujtKBKjPdFbbiZsZ6vA6 UxpxHVX4d2E3RNDUzFyIvks= X-Sasl-enc: UABfouuwKGg2cP3NPCxIDhnTv48sB9lJVH6l72ARPmfJ 1422620707 Original-Received: from blueberry (unknown [31.211.216.84]) by mail.messagingengine.com (Postfix) with ESMTPA id B2C18C0028C; Fri, 30 Jan 2015 07:25:06 -0500 (EST) User-agent: mu4e 0.9.9.6pre3; emacs 24.4.1 In-reply-to: <87wq44a2f3.fsf@fencepost.gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.27 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182051 Archived-At: David Kastrup writes: >> thread-first/last are not in elisp though, are they? > > Hard to corroborate if the people mentioning their wishes don't bother > mentioning what their desired functions are supposed to do. Sorry about that. Here's the docstring of `thread-first' from subr-x.el: Thread FORMS elements as the first argument of their successor. Example: (thread-first 5 (+ 20) (/ 25) - (+ 40)) Is equivalent to: (+ (- (/ (+ 5 20) 25)) 40) Note how the single `-' got converted into a list before threading. Cheers, Nico -- Nicolas Petton http://nicolas-petton.fr