educative.io

Question about Quiz question (anonimous Function)

Can someone explain to me how this returns “hello there”? I completely missed this one

def saySomething(prefix: String) = (s: String) => {  
prefix + " " + s} 
def saySomethingElse = saySomething("hello")
print(saySomethingElse("there"))

Course: Learn Scala from Scratch - Learn Interactively
Lesson: Chapter Quiz - Learn Scala from Scratch