Maybe this will help: (struct interval (small big guesses))
creates 5 new functions 1. interval, for making intervals. For example (interval 5 10 0) creates an interval from 5 to 10 that has 0 guesses 2. interval?, for testing if a value is an interval. For example (interval? 1) is #false and (interval? (interval 0 0 0)) is #true 3. interval-small, to get the value of the "small" field out of an interval. For example, (interval-small (interval 8 9 10)) is 8 4. interval-big, to get the value of the "big" field 5. interval-guesses, to get the value of the "guesses" field This is all described in the Racket docs for struct http://docs.racket-lang.org/reference/define-struct.html The value of (+ (interval-guesses w) 1) is a number 1 greater than the value of the "guesses" field in the interval w. Notice that you give this value as the 3rd argument to a call to (interval ....) -- 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 racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.