[racket] Finding out values

From: Brandon Mick (brandon905 at yahoo.com)
Date: Fri Jan 18 19:24:29 EST 2013


(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. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130118/64eca0e9/attachment.html>

Posted on the users mailing list.