Skip to main content
7 events
when toggle format what by license comment
Jan 27, 2019 at 22:19 comment added Rob Hitchens My guess is -1 was blindly copied from another example. push()-1 corresponds to the row in the array occupied by the appended element. As @goodvibration points out, the result of this work isn't assigned to anything (e.g. uint position = array.push(value) -1) so the extra work is pointless.
S Jan 27, 2019 at 20:58 history suggested Rosco Kalis CC BY-SA 4.0
Code formatting
Jan 27, 2019 at 12:58 review Suggested edits
S Jan 27, 2019 at 20:58
Jan 27, 2019 at 8:01 comment added ivicaa See ethereum.stackexchange.com/questions/40312/…
Jan 27, 2019 at 8:00 answer added goodvibration timeline score: 2
Jan 27, 2019 at 7:50 review First posts
Jan 27, 2019 at 12:20
Jan 27, 2019 at 7:49 history asked Sai Teja CC BY-SA 4.0