[Issue 2928] Swap order of paramaters for std.range's take

2015-06-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2928

Andrei Alexandrescu and...@erdani.com changed:

   What|Removed |Added

Version|2.029   |D2

--


[Issue 2928] Swap order of paramaters for std.range's take

2010-05-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2928


Kyle Foley k-fo...@onu.edu changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


--- Comment #7 from Kyle Foley k-fo...@onu.edu 2010-05-01 16:00:42 PDT ---
Fixed in 2.041

http://digitalmars.com/d/2.0/changelog.html#new2_041

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 2928] Swap order of paramaters for std.range's take

2010-01-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2928


Kyle Foley k-fo...@onu.edu changed:

   What|Removed |Added

 CC||k-fo...@onu.edu


--- Comment #5 from Kyle Foley k-fo...@onu.edu 2010-01-22 16:58:03 PST ---
What is the status on this?  I would like to see it it changed to 

Take!(R) take(R)(R input, size_t n);
Take!(Repeat!(T)) replicate(T)(T value, size_t n);

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 2928] Swap order of paramaters for std.range's take

2010-01-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2928



--- Comment #6 from Andrei Alexandrescu and...@metalanguage.com 2010-01-22 
17:16:25 PST ---
I'll change that soon. Thanks!

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 2928] Swap order of paramaters for std.range's take

2009-10-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2928


Andrei Alexandrescu and...@metalanguage.com changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||and...@metalanguage.com
 AssignedTo|nob...@puremagic.com|and...@metalanguage.com


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 2928] Swap order of paramaters for std.range's take

2009-05-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2928





--- Comment #1 from and...@metalanguage.com  2009-05-03 15:36 ---
Undecided. take is inspired from Haskell et al where the range comes last.


-- 



[Issue 2928] Swap order of paramaters for std.range's take

2009-05-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2928





--- Comment #2 from jarrett.billings...@gmail.com  2009-05-03 15:48 ---
Keep in mind that Haskell's parameter ordering is based on partial application,
a feature that D obviously does not have.  


-- 



[Issue 2928] Swap order of paramaters for std.range's take

2009-05-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2928





--- Comment #3 from and...@metalanguage.com  2009-05-03 16:06 ---
(In reply to comment #2)
 Keep in mind that Haskell's parameter ordering is based on partial 
 application,
 a feature that D obviously does not have.  
 

Sort of does:

import std.functional, std.range, std.stdio;

void main() {
auto a = [ 1, 2, 3 ][];
alias curry!(take, 2) take2;
foreach (e; take2(a)) { writeln(e); }
}

But I agree there are good arguments in favor of swapping arguments.


--