Post AtfDwqP2vnvu3aaA2S by feike@toot.community
(DIR) More posts by feike@toot.community
(DIR) Post #Ate94ddba93Pr1KTfE by BrodieOnLinux@mstdn.social
2025-05-01T09:58:25Z
0 likes, 0 repeats
Are negative array indices based or cringe?
(DIR) Post #Ate9yCMiARV1UEv87M by triskelion@fosstodon.org
2025-05-01T10:08:28Z
0 likes, 0 repeats
@BrodieOnLinux https://dictionary.cambridge.org/dictionary/english/baseness> a lack of any honour or moralsSo both fits :P
(DIR) Post #AteBX830JSlwBVvFnU by technicfan@mstdn.social
2025-05-01T10:25:59Z
0 likes, 0 repeats
@BrodieOnLinux I find this quite useful when working with strings in python to remove characters at the end or get the last element of a split.
(DIR) Post #AteCxTqK05YjGW7TZA by normplum@fosstodon.org
2025-05-01T10:41:56Z
0 likes, 0 repeats
@BrodieOnLinux Based on what?Kids today... :eyeroll:
(DIR) Post #AteEfTsLLA8y3vbt8i by mitsunee@ieji.de
2025-05-01T11:01:05Z
0 likes, 0 repeats
@BrodieOnLinux I wish I had them in JS tbh
(DIR) Post #AtexdVQ57kjgD3p6nI by moak@mastodon.social
2025-05-01T19:24:57Z
0 likes, 0 repeats
@BrodieOnLinux In memo no negative numbers exist, only absolutes, however you interpret them. Negative indices are like freedom units: derived from the metric system and looking stupid.
(DIR) Post #AtfDwqP2vnvu3aaA2S by feike@toot.community
2025-05-01T22:27:44Z
0 likes, 0 repeats
@BrodieOnLinux what are arrays, (I'm non-native English-speaker (Dutchman) )
(DIR) Post #Av1L2x6tkJaXz1atu4 by awalrus@techhub.social
2025-06-11T12:23:01Z
0 likes, 0 repeats
@BrodieOnLinux only based if you have 1-based indexing, otherwise it's not symmetric