[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Pass argument to function
From: |
Brandon Booth |
Subject: |
Pass argument to function |
Date: |
Fri, 10 Mar 2023 04:50:12 +0000 |
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
- Pass argument to function,
Brandon Booth <=