IRC channel logs
2023-04-20.log
back to list of logs
<AwesomeAdam54321>RhodiumToad: (map ...) returns a list like "(a b c)" and I want to turn it into just "a b c" <RhodiumToad>maybe show an example, it's really not clear what you mean <RhodiumToad>so dependencies is a list of strings and you want a list of symbols? <AwesomeAdam54321>so (php-guzzlehttp-guzzle php-psr-http-client php-http-httplug) should have the these two parentheses removed <RhodiumToad>(a b c) is a list and therefore can be treated as a single value. a b c is not <RhodiumToad>also, why is that map not just (map string->symbol dependencies) <AwesomeAdam54321>RhodiumToad: I want fix a Guix package importer for PHP and the importer outputs a Guix package definition which is scheme <AwesomeAdam54321>(inputs (list a b c)) and (inputs (list (a b c))) are probably the same, but it's for aesthetics <RhodiumToad>compare `(foo ,(map string->symbol '("bar" "baz")) quux) vs. `(foo ,@(map string->symbol '("bar" "baz")) quux) <RhodiumToad>it's like , except that it splices in a list rather than substituting a single value <RhodiumToad>it's in the manual under "expression syntax" (look for quasiquote and unquote-splicing <RhodiumToad>quasiquote is just the real name for ` which you already used in your example above <cow_2001>i am trying to write EOF (^D) into an (open-pipe* OPEN_BOTH …) port <cow_2001>it's how you end a `yt-dlp -a -` download list <cow_2001>now, after i (close-port some-port) it, how do i wait for the popened process to complete? <cow_2001>no, that's not it. close-port is supposed to waitpid. <cow_2001>it just exits guile and the yt-dlp process then runs in the background <cow_2001>(close-port yt-dlp-port) is right at the end of the guile script