5- Variable Capture

1:56 2 Kaikōrero 1 Whakahauhau 43 wehenga

Whakahauhau

  1. 0:03

    In the body of this lambda, we're using the message parameter that we have declared over here. But we can also access the local variables in the enclosing method. So I'm going to declare a variable called prefix and set it to hyphen. Now, h…