Please enable JavaScript.
Coggle requires JavaScript to display documents.
Module 1a (Strings (substring (allows you to take out characters from a…
Module 1a
Strings
-
-
-
substring
note it uses, 0 based indexing. so the first character is character 0
allows you to take out characters from a string. the characters taken out start with the first index given then up to but not including the last index given.
an index given of 2 4 would mean that it pulls out the 2nd and 3rd characters but doesn't include the 4th. also note that the very first character of the string is character 0
-
Image Primitives
(require 2htdp/image)
this commands tells Racket to use image functions from the 2nd edition of the How To Write Programs book
-
Image Manipulation
above
-
produces an image with all its arguments stacked up, and lined up on their horizontal centers
-
overlay
stacks its image arguments on top of each other, lined up at their centers
the image you want on top, is the first argument in the series of image commands
-
-
-
-
-
-
How to make comments
a single ; symbol in front of text will comment it out, and Racket will ignore it
-