4 ms·
Some language designers would argue that, conceptually, it is a function call, especially in languages that don’t allow mutations to data structures. foo = [
by Someone 7y ago
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
- beeforpork 7y agoThat. Exactly.