Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(10287)

Issue 423041: code review 423041: Slice reversal with a twist

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 1 month ago by matti.paksula
Modified:
9 years, 7 months ago
Reviewers:
kaib
Visibility:
Public.

Description

Slice reversal with a twist

Patch Set 1 #

Patch Set 2 : code review 423041: Slice reversal with a twist #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -0 lines) Patch
A matti.paksula/slice_reversal.go View 1 chunk +64 lines, -0 lines 2 comments Download

Messages

Total messages: 2
matti.paksula
Hello kaib, I'd like you to review this change.
14 years, 1 month ago (2010-03-10 23:13:01 UTC) #1
kaib
14 years, 1 month ago (2010-03-11 13:39:08 UTC) #2
lgtm

http://codereview.appspot.com/423041/diff/2001/3001
File matti.paksula/slice_reversal.go (right):

http://codereview.appspot.com/423041/diff/2001/3001#newcode14
matti.paksula/slice_reversal.go:14: tmp := s[right]
use multiple assignment to get rid of the temp
s[left], s[right] = s[right], s[left]

http://codereview.appspot.com/423041/diff/2001/3001#newcode24
matti.paksula/slice_reversal.go:24: type PimpedSlice []int
cheap thrills..
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b