seedwing-io / seedwing-policy

A functional type system for policy inspection, audit and enforcement.
https://www.seedwing.io
Apache License 2.0
12 stars 15 forks source link

docs: add example for lang::traverse #200

Closed danbev closed 1 year ago

danbev commented 1 year ago

This commit adds an example and a test for the lang::traverse function.

The motivation for this is that I think I should use it with the SPDX patterns but was not sure how it worked. Hopefully this will be useful for others in the same situation.

bobmcwhirter commented 1 year ago

Maybe the self.foo sugar syntax?

danbev commented 1 year ago

Maybe the self.foo sugar syntax?

I've added an example which shows that in addition to the explicit invocation.