(cond
  [(<= (string-length s) 5) 10]
  [(string=? s “hello”) 50]
  [(string=? (substring s 1 4) “ell”) 25]
  [else 130])

new to racket. im trying to find out what would ii get as a value if I replace 
the s with “hello” 

its easier to do this with numbers where you would define s and give it a 
number, but it won't work here. 
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to