Skip to main content
12 events
when toggle format what by license comment
Jul 26, 2023 at 9:44 history edited Audrius Meškauskas CC BY-SA 4.0
added 98 characters in body
Jul 26, 2023 at 9:37 history edited Audrius Meškauskas CC BY-SA 4.0
added 59 characters in body
Jul 26, 2023 at 8:14 comment added user23013 Some languages, say PHP, supports defining both the index and the element in a foreach loop.
Jul 26, 2023 at 8:01 history edited Audrius Meškauskas CC BY-SA 4.0
added 423 characters in body
Jul 19, 2023 at 8:07 comment added Audrius Meškauskas Pyton's for x in range(1,5) is very comparable with a C style loop for (int x = 1; x < 5; x++) so of course you can do all the same with it and same about the Swift for i in 1...5 . C style loop is of course originally more complex (assignment, comparison, increment) but a typical C developer recognizes the most common simple case and immediately parses into "ranged" understanding.
Jul 19, 2023 at 8:03 comment added Adamátor All of these can more easily be solved by having an iterator over a range of numbers, such as Python's range.
Jul 6, 2023 at 17:20 history edited Audrius Meškauskas CC BY-SA 4.0
added 915 characters in body
Jul 6, 2023 at 17:14 history edited Audrius Meškauskas CC BY-SA 4.0
added 915 characters in body
Jul 5, 2023 at 15:21 history edited Audrius Meškauskas CC BY-SA 4.0
added 301 characters in body
Jul 5, 2023 at 12:35 comment added Bbrk24 The first one is often mitigated by a zip function, but that doesn't help if you need to modify one or both of the arrays in-place.
Jul 5, 2023 at 12:14 history edited Audrius Meškauskas CC BY-SA 4.0
added 754 characters in body
Jul 5, 2023 at 12:00 history answered Audrius Meškauskas CC BY-SA 4.0