inner
is a dictionary that resolves to text. outer
is a function that receives two strings, name
and attitude
. attitude
is one of “kind” and “rude”. However I get this error:
Dictionary does not contain key “attitude” (line 6)
Is this because attitude
is being considered a key of inner
rather than a parameter of outer
? How can I fix my code?
#let inner = (
kind: "Hello,",
rude: "What up,"
)
#let outer(name, attitude) = inner.attitude + name
#outer("Steve", "rude")