Some language designers would argue that, conceptually, it is a function call, especially in languages that don’t allow mutations to data structures.
foo = [10,20]
Func foo(i) = switch(i)
case 0: return 10
case 1: return 20
default: return nil