Hello
I'm trying to build g-wrap downloaded with git for guile 1.9.10.
I have my guile on $HOME/usr. I also have the following environment
variables:
export LDFLAGS="-L$HOME/usr/lib"
export CPPFLAGS="-I$HOME/usr/include -I$HOME/usr/include/guile/2.0"
export PKG_CONFIG_PATH="$HOME/usr/lib/pkgconf
>>(define y '(1 2 3 4))
>>(define dt 1)
>>(define foo
> (lambda (t) (do ((i 0 (+ i 1))) ((> i 3)) (if (and (>= t 0) (and (>= t
> (* i dt)) (< t (* (+ i 1) dt (list-ref y i) #f
DO does not return its body. It can be a little confusing.
http://www.schemers.org/Documents/Standards/R5RS
2010/5/31 Hsiu-Hao Tsao :
> Hello plt-scheme users ,
>
> I am new to scheme and sorry to ask a newbie question.
>
> I want to let function return the value , for example , in Drscheme :
>
>>(define add2 (lambda (i) (+ i i)))
>>(add2 2)
> 4
>
> I type (add2 2) in command line and it will return a va
Hello guile users ,
I am new to scheme and sorry to ask a newbie question.
I want to let function return the value , for example , in Drscheme :
>(define add2 (lambda (i) (+ i i)))
>(add2 2)
4
I type (add2 2) in command line and it will return a value 4.
But when I type my function foo in the
Hello plt-scheme users ,
I am new to scheme and sorry to ask a newbie question.
I want to let function return the value , for example , in Drscheme :
>(define add2 (lambda (i) (+ i i)))
>(add2 2)
4
I type (add2 2) in command line and it will return a value 4.
But when I type my function foo in