Re: Why ByChunk is not regnize by st.range.takeOne and why Section has no value

2014-11-03 Thread bioinfornatics via Digitalmars-d-learn
On Monday, 3 November 2014 at 21:03:51 UTC, bioinfornatics wrote: On Monday, 3 November 2014 at 06:43:50 UTC, Ali Çehreli wrote: On 11/02/2014 04:58 PM, bioinfornatics wrote: > Dear, > Some problem to build this code: http://fpaste.org/147327/75948141/ > > > $ ldc2 fasta_test.d > /usr/include/d

Re: Why ByChunk is not regnize by st.range.takeOne and why Section has no value

2014-11-03 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, November 03, 2014 21:03:51 bioinfornatics via Digitalmars-d-learn wrote: > Ok but I do not see why to use save method for a takeOne function > is possible to write this function without to use it It looks like the idea was that beacause you know that there's only one element, you can m

Re: Why ByChunk is not regnize by st.range.takeOne and why Section has no value

2014-11-03 Thread bioinfornatics via Digitalmars-d-learn
On Monday, 3 November 2014 at 06:43:50 UTC, Ali Çehreli wrote: On 11/02/2014 04:58 PM, bioinfornatics wrote: > Dear, > Some problem to build this code: http://fpaste.org/147327/75948141/ > > > $ ldc2 fasta_test.d > /usr/include/d/std/range.d(3605): Error: template std.array.save > cannot deduce

Re: Why ByChunk is not regnize by st.range.takeOne and why Section has no value

2014-11-02 Thread Ali Çehreli via Digitalmars-d-learn
On 11/02/2014 04:58 PM, bioinfornatics wrote: > Dear, > Some problem to build this code: http://fpaste.org/147327/75948141/ > > > $ ldc2 fasta_test.d > /usr/include/d/std/range.d(3605): Error: template std.array.save > cannot deduce function from argument types !()(ByChunk), > candidates are: I

Why ByChunk is not regnize by st.range.takeOne and why Section has no value

2014-11-02 Thread bioinfornatics via Digitalmars-d-learn
Dear, Some problem to build this code: http://fpaste.org/147327/75948141/ $ ldc2 fasta_test.d /usr/include/d/std/range.d(3605): Error: template std.array.save cannot deduce function from argument types !()(ByChunk), candidates are: /usr/include/d/std/array.d(554):std.array.save(T)(T[]