Am Sonntag, 25. Juni 2017 19:40:08 UTC+2 schrieb philipp.t...@gmail.com:
> Hello its me again,
>
> I have the task to make a funcition who checks if two lists contain a word.
>
> I made a function which does that with one lst but I dont find a way to do it
> with two lists. There must be some ea
Thanks guys the tips made me have the idea that I can just write the check for
the second list instead of '(true).
Here is my solution:
#lang racket
(define (test1 word book book2)
(cond ((null? book) '(false))
((equal? word (first book)) (cond ((null? book2) '(false))
Am Sonntag, 25. Juni 2017 14:24:27 UTC+2 schrieb philipp.t...@gmail.com:
> Hello today I made a translator for drRakket cause its a task of my teacher.
>
>
>
> I did it for one word but now I have to make it with a whole setence. I know
> I have to work with cons somehow but I just dont get how
Hello I tried another version but it doesnt work. Can anyone help me? Using the
"and" function didnt help me.
#lang racket
(define (checker wort liste1 liste2)
(cond ((and (equal? (first liste1) wort)
(equal? (first liste2) wort))
'(true))
((or (null? liste1)
Thanks guys I got a solution!
#lang racket
(define *lex*
'((catgato katze)
(dog perro hund)
(eats come frisst)
(jumps salte springt)
(the el die)))
(define (translator wort lexikon sprache)
(cond ((null? lexikon) '(Wort wurde nicht gefunden))
((or (equa
Thanks for all the answers but I have to say that it has to be in one function
and that I can only use this tools (https://pastebin.com/en3E4aTA). I tried
solving this for hours so please help me.
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group
Hello its me again,
I have the task to make a funcition who checks if two lists contain a word.
I made a function which does that with one lst but I dont find a way to do it
with two lists. There must be some easy trick but I dont find it.
The function has to look like this: (test2 word list1 l
Hello today I made a translator for drRakket cause its a task of my teacher.
I did it for one word but now I have to make it with a whole setence. I know I
have to work with cons somehow but I just dont get how to make it. My teacher
doesnt understand it himself (he uses a pdf which gives all
8 matches
Mail list logo