help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deleting unnecessary services from %desktop-services


From: Ricardo Wurmus
Subject: Re: Deleting unnecessary services from %desktop-services
Date: Fri, 30 Nov 2018 03:55:08 +0100
User-agent: mu4e 1.0; emacs 26.1

address@hidden writes:

> Guile Manual says 'remove' returns elements. But I need to remove elements.

“remove” does what you want.  The “services” field expects a list of
services.  When using “remove” on a list of services it returns a new
list of (possibly fewer) services.  That’s exactly what you want.

“remove!”, on the other hand, mutates an existing value; you would need
to have it operate on an existing variable to mutate it.  “remove” is
much more elegant.

--
Ricardo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]