Experimenting with templates
Bahman Movaqar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jul 13 15:37:14 PDT 2016
Following up my D practices, I've created a 'groupBy' template[1] for
Stockman (my practice project).
I'd like to ask you more experienced folks to please take a look at it.
As this is my first template, I'd like to know if I am doing anything
idiomatically/logically wrong.
PS: I've also implemented two simple function templates (all[1] and
contains[2]) because the versions from dlib didn't appeal to my sense of
usage beauty :-)
[1]
https://github.com/bahmanm/stockman-d/blob/master/source/rangeutils.d#L38
[2]
https://github.com/bahmanm/stockman-d/blob/master/source/rangeutils.d#L105
[3]
https://github.com/bahmanm/stockman-d/blob/master/source/rangeutils.d#L129
--
Bahman
More information about the Digitalmars-d-learn
mailing list