gredman·há 15 anos·discusshttps://bitbucket.org/gr3dman/lishpIn Haskell. Has partial application, but is otherwise terrible.
gredman·há 15 anos·discussSay we start with three tabs, so i goes 0, 1, 2.When i reaches 2, two tabs have already been removed, so there is only one tab left. So in the loop body we then do: this.MyControl.TabPages[2] // oh no! In general, modifying a collection is a bit of a code smell, and a lot of iterator implementations will actually throw exceptions if you try it.
gredman·há 15 anos·discussI believe it exists in Cω via "generalized member access" without recourse to map/foreach-type constructs.
In Haskell. Has partial application, but is otherwise terrible.