Group Group Group Group Group Group Group Group Group

Syntax on page 33 example(of: )

#1

There is this syntax I’ve never encountered before on page 33

example(of: “creating and linking nodes”)

Can someone tell me what is going on in this syntax or provide a link to a reference?

#2

The example function is a custom function of ours. You can find the definition in sources. It takes a string and a closure and then just prints out the string and runs the closure. This is great because each example can have its own scope and when you go look at the console output you can tell what output corresponds to what example.

1 Like