myLongList = [1, 2, 3, 4, 5, 6, 7, 8, 9]
However, I can't think of a direct parallel to your example above. It looks handy. What API/language are you alluding to?
I guess the Pythonic way would be something like:
win = Window(title = "A new window", foreground = "Red", background = "White", menuBar = [fileMenu, viewMenu, helpMenu])
win = Window.new({title: "A new window", foreground: Red, background: White, menuBar: [fileMenu, viewMenu, helpMenu]});
As i said before: no particular language.
However, I can't think of a direct parallel to your example above. It looks handy. What API/language are you alluding to?
I guess the Pythonic way would be something like:
But I disgress. :^)