On 5/29/20, Freeman Gilmore <freeman.gilm...@gmail.com> wrote:
> But how do i get Z (or x) out side so i can use the variable?  for example:
> #(display Z)

You need to define it at the top-level; then you can change its value
using set!:

%%%%

\version "2.20.0"
#(use-modules (ice-9 regex))

#(define Z '())

j =
#(define-void-function
  (x)
  (string>?)
  (set! Z x))

\j "-3     +8  -6+1-8"

#(display Z)

%%%%

Cheers,
-- V.

Reply via email to