Hopefully not a silly question - scala has a lot of syntactic sugar I'm not aware of yet. I'm trying to improve as a dev and get really readible code down so that's my intention upfront.
Is it possible to create a List that will only be declared once and place it inside a method body for clarity? I want to do this and have scala put that thing in permgen and just leave it there as it will never change. Is it possible for this to be done or do I have to declare it in a class body.
eg
def method(param: Whatever) {
val list = List("1", "1")
}
Edit: I'm taking a wild stab that it's 'final' and I'm looking now.