David Pirotte (2016-09-18 23:03 -0300) wrote:

> Hello,

Hello!

> Guile-Lib is intended as an accumulation place for pure-scheme Guile modules,
> allowing for people to cooperate integrating their generic Guile modules into 
> a
> coherent library. Think "a down-scaled, limited-scope CPAN for Guile".

I wonder, would it be appropriate to add a small library for working
with property lists there?

It just provides several procedures, like plist-get, plist-fold, etc.,
for example:

  (plist-delete '(#:foo 1 #:bar 2 #:foo 3) #:foo)  =>  (#:bar 2)
  (plist-get '(one 1 two 2 three 3) 'two)   =>  2
  (plist-put '(foo 1 bar two) 'bar 2)  =>  (bar 2 foo 1)

The code can be found here:
<https://github.com/alezost/guile-config/blob/master/modules/al/plists.scm>.

-- 
Alex

Reply via email to