|
From: | Kristian Lein-Mathisen |
Subject: | Re: Pass argument to function |
Date: | Fri, 10 Mar 2023 17:08:53 +0100 |
I'm trying to learn Chicken and having issues. I'm trying to create a function that takes a docker container name and runs "docker inspect [container]."This works:(define test (capture "docker inspect hello-world"))This works:(define (str-concat str)
(string-append "docker inspect " str))This doesn't:(define (inspect str)
(capture (string-append "docker inspect " str)))I get an error that string-append is not found. How do a call capture with the result of string-append?Thanks.Brandon
[Prev in Thread] | Current Thread | [Next in Thread] |