From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Deleting unnecessary services from %desktop-services Date: Fri, 30 Nov 2018 03:55:08 +0100 Message-ID: <87efb32s1f.fsf@elephly.net> References: < <87bm6am94n.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSnkH-0000ID-H9 for help-guix@gnu.org; Fri, 30 Nov 2018 13:42:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSnkE-00073u-BU for help-guix@gnu.org; Fri, 30 Nov 2018 13:42:33 -0500 Received: from sender-of-o52.zoho.com ([135.84.80.217]:21372) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gSnkD-00073O-NZ for help-guix@gnu.org; Fri, 30 Nov 2018 13:42:30 -0500 In-reply-to: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: znavko@tutanota.com Cc: Help Guix znavko@tutanota.com writes: > Guile Manual says 'remove' returns elements. But I need to remove element= s. =E2=80=9Cremove=E2=80=9D does what you want. The =E2=80=9Cservices=E2=80= =9D field expects a list of services. When using =E2=80=9Cremove=E2=80=9D on a list of services it ret= urns a new list of (possibly fewer) services. That=E2=80=99s exactly what you want. =E2=80=9Cremove!=E2=80=9D, on the other hand, mutates an existing value; yo= u would need to have it operate on an existing variable to mutate it. =E2=80=9Cremove= =E2=80=9D is much more elegant. -- Ricardo