May 23, 2012 Re: why D matters for Bioinformatics | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | "bearophile" , dans le message (digitalmars.D:168206), a écrit :
>> Besides that, it is easy to emulate your example with a little library solution. Maybe something like that should be added to std.range.
>
> What syntax do you suggest?
foreach (immutable sx, sy; unpack(s)) {...}
doing something like (but more optimised than):
foreach (immutable sx, sy; lockstep(s.map!"a[0]", s.map!"a[1]")) {...}
You have to be careful with types, I don't think the result of map here can be cast to immutable (but I didn't check).
|
May 24, 2012 Re: why D matters for Bioinformatics | ||||
---|---|---|---|---|
| ||||
Posted in reply to george | Le mardi 22 mai 2012 à 18:01 +0200, george a écrit : > An interesting post and case for using D in bioinformatics by > Pjotr Prins > http://blog.thebird.nl/?p=93 I have created dsciene for develop a bioinformatics library https://github.com/dscience-developers/dscience everyone are welcome to contribute |
Copyright © 1999-2021 by the D Language Foundation