Like other languages, racket defines their own primary data types, which include integers,
numbers, Character, symbols, strings, images and booleans. Among them, Integer, Number,
String, Image and Boolean are the top five most frequently used primary data types in this
course.The link below is the whole reference documentation of all racket built-in syntax.
https://docs.racket-lang.org/reference/
-
For cpsc110, we may use some of them.
For every frequently used primary data type, I post some of the sample use of built-in syntax.
One thing needs to pay attention is that, in racket,
Boolean true could be coded as "#t" or "true"
Boolean false could be coded as "#f" or "false"
Integer
https://www.csubc.com/d/15-integer
Number
https://www.csubc.com/d/16-number
String
https://www.csubc.com/d/17-string
Image
https://www.csubc.com/d/18-image
Boolean
https://www.csubc.com/d/19-boolean-if-vs-cond