Hello,

Pierre Neidhardt <[email protected]> skribis:

> Oops!  Sorry for that.

No problem.  :-)

> What would be the most lispy way to return nothing from the match?
> I'm thinking of splicing the resulting lists, but that sounds a bit overkill:
>
> (let ((dirs '("lib" "library" "examples" "tools" "objc-bridge"
>               ,@(match (%current-system)
>                  ("x86_64-linux"
>                   '("x86-headers64"))
>                  ("i686-linux"
>                   '("x86-headers"))
>                  (_ '())))))
>
> Thoughts?

LGTM.  Make sure ‘guix build’ and ‘guix lint’ are happy too.  :-)

Thanks,
Ludo’.

Reply via email to