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

Issue 160064: code review 160064: Add Count, Cycle, ZipWith, GroupBy, Repeat, RepeatTimes...

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 7 months ago by sigpipe
Modified:
15 years, 7 months ago
Reviewers:
dsymonds, rsc
CC:
rsc, dsymonds, golang-dev, r
Visibility:
Public.

Description

Add Count, Cycle, ZipWith, GroupBy, Repeat, RepeatTimes, Unique to exp/iterable. Modify iterFunc to take chan<- instead of just chan.

Patch Set 1 #

Patch Set 2 : code review 160064: Add Count, Cycle, ZipWith, GroupBy, Repeat, RepeatTimes... #

Total comments: 5

Patch Set 3 : code review 160064: Add Count, Cycle, ZipWith, GroupBy, Repeat, RepeatTimes... #

Total comments: 5

Patch Set 4 : code review 160064: Add Count, Cycle, ZipWith, GroupBy, Repeat, RepeatTimes... #

Total comments: 13

Patch Set 5 : code review 160064: Add Count, Cycle, ZipWith, GroupBy, Repeat, RepeatTimes... #

Total comments: 1

Patch Set 6 : code review 160064: Add Count, Cycle, ZipWith, GroupBy, Repeat, RepeatTimes... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+363 lines, -25 lines) Patch
M src/pkg/exp/iterable/iterable.go View 1 2 3 4 5 6 chunks +159 lines, -24 lines 0 comments Download
M src/pkg/exp/iterable/iterable_test.go View 1 2 3 4 3 chunks +204 lines, -1 line 0 comments Download

Messages

Total messages: 16
sigpipe
Hello rsc, dsymonds1, I'd like you to review the following change.
15 years, 7 months ago (2009-11-25 04:25:07 UTC) #1
dsymonds
http://codereview.appspot.com/160064/diff/1001/1002 File src/pkg/exp/iterable/iterable.go (right): http://codereview.appspot.com/160064/diff/1001/1002#newcode214 src/pkg/exp/iterable/iterable.go:214: // Count returns consecutive integers starting with n. This ...
15 years, 7 months ago (2009-11-25 04:51:39 UTC) #2
sigpipe
PTAL. On 2009/11/25 04:51:39, dsymonds1 wrote: > http://codereview.appspot.com/160064/diff/1001/1002#newcode214 > src/pkg/exp/iterable/iterable.go:214: // Count returns consecutive integers ...
15 years, 7 months ago (2009-11-25 06:01:44 UTC) #3
dsymonds
http://codereview.appspot.com/160064/diff/8/9 File src/pkg/exp/iterable/iterable.go (right): http://codereview.appspot.com/160064/diff/8/9#newcode149 src/pkg/exp/iterable/iterable.go:149: func Take(iter Iterable, n int) Iterable { return Slice(iter, ...
15 years, 7 months ago (2009-11-25 23:18:53 UTC) #4
sigpipe
On 2009/11/25 23:18:53, dsymonds1 wrote: > http://codereview.appspot.com/160064/diff/8/9#newcode257 > src/pkg/exp/iterable/iterable.go:257: fv, ok := > reflect.NewValue(f).(*reflect.FuncValue); > ...
15 years, 7 months ago (2009-11-26 04:54:15 UTC) #5
dsymonds
LGTM Looks fine overall. Over to rsc. http://codereview.appspot.com/160064/diff/2002/2003 File src/pkg/exp/iterable/iterable.go (right): http://codereview.appspot.com/160064/diff/2002/2003#newcode218 src/pkg/exp/iterable/iterable.go:218: // Zip ...
15 years, 7 months ago (2009-11-26 23:40:50 UTC) #6
rsc
A few comments. http://codereview.appspot.com/160064/diff/2002/2003 File src/pkg/exp/iterable/iterable.go (right): http://codereview.appspot.com/160064/diff/2002/2003#newcode206 src/pkg/exp/iterable/iterable.go:206: // Chain returns an Iterable that ...
15 years, 7 months ago (2009-11-30 00:14:12 UTC) #7
dsymonds
http://codereview.appspot.com/160064/diff/2002/2003 File src/pkg/exp/iterable/iterable.go (right): http://codereview.appspot.com/160064/diff/2002/2003#newcode206 src/pkg/exp/iterable/iterable.go:206: // Chain returns an Iterable that concatentates all values ...
15 years, 7 months ago (2009-11-30 00:54:29 UTC) #8
rsc
>> type Grouper interface { > > That's a better name, but I still think ...
15 years, 7 months ago (2009-11-30 01:07:54 UTC) #9
r
is this CL active?
15 years, 7 months ago (2009-12-02 04:34:26 UTC) #10
sigpipe
On 2009/11/30 00:14:12, rsc wrote: > http://codereview.appspot.com/160064/diff/2002/2003#newcode243 > src/pkg/exp/iterable/iterable.go:243: // ZipWith returns an Iterable containing ...
15 years, 7 months ago (2009-12-02 04:36:45 UTC) #11
sigpipe
On 2009/12/02 04:34:26, r wrote: > is this CL active? Heh, missed it by >< ...
15 years, 7 months ago (2009-12-02 04:37:23 UTC) #12
rsc
looks good to me. please make the one fix below and hg upload (and let ...
15 years, 7 months ago (2009-12-03 21:00:18 UTC) #13
sigpipe
Updated comment for Zip. PTAL.
15 years, 7 months ago (2009-12-04 02:43:43 UTC) #14
rsc
LGTM thanks
15 years, 7 months ago (2009-12-04 03:57:41 UTC) #15
rsc
15 years, 7 months ago (2009-12-04 04:03:10 UTC) #16
*** Submitted as http://code.google.com/p/go/source/detail?r=db8f28e4e8ac ***

Add Count, Cycle, ZipWith, GroupBy, Repeat, RepeatTimes, Unique to exp/iterable.

Modify iterFunc to take chan<- instead of just chan.

R=rsc, dsymonds1
CC=golang-dev, r
http://codereview.appspot.com/160064

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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