Filtering Greek letters by Unicode in Scala

Report a typo
Hey there! This problem might be a bit unpredictable, but give it a go and let us know how you do!
Given a piece of code in Scala:
val str = 'Hello ΑΒΓ World!'
val res = ???
Which line(s) of code should replace '???' if you want to turn each Unicode character in 'str' into its corresponding Unicode code point, store them into a collection and then filter out only the Greek letters ('Α', 'Β' and 'Γ')?
Select one option from the list

Create a free account to access the full topic