digitalmars.D - More fun with std.range.transposed
- H. S. Teoh (5/5) Feb 13 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9507
- monarch_dodra (8/11) Feb 13 2013 Just a quick question: Isn't "Transverse" conceptually the same
- H. S. Teoh (8/24) Feb 13 2013 I suppose you could regard it that way. It's a range of frontTransversal
http://d.puremagic.com/issues/show_bug.cgi?id=9507 Thoughts? T -- The only difference between male factor and malefactor is just a little emptiness inside.
Feb 13 2013
On Wednesday, 13 February 2013 at 21:34:27 UTC, H. S. Teoh wrote:http://d.puremagic.com/issues/show_bug.cgi?id=9507 Thoughts? TJust a quick question: Isn't "Transverse" conceptually the same as a "range of FrontTraversal" ? I'd say you have two options: 1) Simply statically enforce "EnforceNotJagged": This would make more sense (IMO) given the definition of "Transverse". You could enforce it via asserts. 2) Just like FrontTraversal, allow an option parameter.
Feb 13 2013
On Wed, Feb 13, 2013 at 11:07:30PM +0100, monarch_dodra wrote:On Wednesday, 13 February 2013 at 21:34:27 UTC, H. S. Teoh wrote:I suppose you could regard it that way. It's a range of frontTransversal where popFront pops the front element of each subrange.http://d.puremagic.com/issues/show_bug.cgi?id=9507 Thoughts? TJust a quick question: Isn't "Transverse" conceptually the same as a "range of FrontTraversal" ?I'd say you have two options: 1) Simply statically enforce "EnforceNotJagged": This would make more sense (IMO) given the definition of "Transverse". You could enforce it via asserts. 2) Just like FrontTraversal, allow an option parameter.Yes, the question is, which option should be implemented? Or should that be a compile-time parameter? T -- Gone Chopin. Bach in a minuet.
Feb 13 2013