How to access vectors in scheme?

0

Give us also:

    (define (contav vect)

    (contav-aux vect 0 (vector-length vect) 0))

I've tried the following but for some reason is always giving error, can you give me a hand? Thank you!

    (define (contav-aux vect indice tamanho total)
            (cond ((null? vect) 0)
                  ((symbol? (vector-ref vect 0))((contav-aux vect (+ indice 1) tamanho total)))
            (else (contav-aux vect (+ 1 indice) tamanho (+ 1 total)))))
    
asked by anonymous 12.11.2018 / 20:35

0 answers