Can you show us findSense?

The error message is saying there's an extra pair of parentheses somewhere,
for example:
> (1)
> (define-struct foo () #:transparent)
> ((foo))

On Wed, Oct 26, 2016 at 1:16 PM, Ken MacKenzie <[email protected]> wrote:

> New to racket and playing with a little something.  Here is my code:
>
> #lang racket/base
>
> (require racket/list)
>
> (require "Findsense.rkt")
>
> (provide handleWords)
>
> (define (handleWords wlist)
>   (cond
>     [(null? wlist) #f]
>     [else (display (findSense (first wlist)))
>           (handleWords (rest wlist))]))
>
> (handleWords (list "art" "bear"))
>
> And here is the error I receive running it.
>
> application: not a procedure;
>  expected a procedure that can be applied to arguments
>   given: (sense '("art" "1:04:00::") '("00935235" "2" "15"))
>   arguments...: [none]
>   context...:
>    /home/superfly/dev/racket/SParse/Words.rkt: [running body]
>
> Details on the Findwords.rkt file, that is where the Findsense function
> and sense structure are provided from.  The structure is marked
> #:transparent
>
> I have tried different variations of using write, display, and even print
> and just can't seem to get past this error on returning a struct from the
> function.
>
> Note, this is called from another piece of code.  I added the last line
> with art and bear as a means of isolating it for testing.
>
> Ken
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to