#@ load("@ytt:overlay", "overlay")

#@overlay/match by=overlay.all
---
awards:
#@overlay/match by=overlay.subset("Dayton Literary Peace Prize")
#@overlay/replace via=lambda left, right: left.replace("Dayton", right)
- Oslo

#! `@overlay/replace via` takes a function with 2 params:
#!   `left` is the matched array item (here: "Dayton Literary Peace Prize")
#!   `right` is the annotated array item (here: "Oslo")

#! `lambda` starts a function literal.
#!   followed by a parameter list, ending with a `:`
#!   and a single expression that is the body of
#!     the function.

#! Strings come with a number of built-in functions,
#!   including `replace()`.
#! For more: https://carvel.dev/ytt/docs/latest/lang-ref-string/
