I have the following code:
(plot (function sin (- pi) pi #:label "y = sin(x)"))
But while solving SICP I did not encounter such a construct: #:label "y = sin(x)"
What does the hash tag mean?
It's an optional keyword argument, an optional extra argument for the function function
that is passed by name. #:label
is the keyword, and "y = sin(x)"
is the value. All keywords have the form of a hashtag and a colon followed by the keyword name, e.g. #:label
, #:foo
, #:blah
, etc. See Keywords in the docs.