dlq 0.1.2

D Language Query (Linq port to D)


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

dlq (D language query)

dlq is a System.Linq port to D. Based on corefx source code and official Microsoft documentation

Ported functions

  • [ ] Aggregate
  • [x] All
  • [x] Any
  • [x] Average
  • [ ] Cast
  • [x] Contains
  • [ ] DefaultIfEmpty
  • [x] Distinct
  • [ ] Except
  • [x] First
  • [ ] FirstOrDefault
  • [ ] GroupBy
  • [ ] GroupJoin
  • [ ] Intersect
  • [ ] Join
  • [x] Last
  • [ ] LastOrDefault
  • [x] LongCount
  • [x] Max
  • [x] Min
  • [ ] OfType
  • [x] OrderBy
  • [x] OrderByDescending
  • [ ] Prepend
  • [x] Select (HACK)
  • [ ] Skip
  • [ ] SkipLast
  • [ ] SkipWhile
  • [x] Sum
  • [ ] Take
  • [ ] TakeLast
  • [ ] TakeWhile
  • [ ] ToDictionary
  • [ ] Union
  • [x] Where
  • [ ] Zip

Won't add

  • Append - D already lets you append arrays using ~=
  • AsEnumerable - This project only uses arrays
  • ElementAt - [n] gets the element at n-th position
  • Empty - [ ] creates an empty array
  • Reverse - array already has a property with the same name that does the same thing
  • SelectMany - Just run Select multiple times
  • SequenceEqual - [] == [] does the same thing
  • Single - What's the point? Just check the length and use first
  • ThenBy - D doesn't have deferred execution
  • ThenByDescending - same as ThenBy
  • ToArray - Same as AsEnumerable
  • ToHashSet - Same as AsEnumerable
  • ToList - Same as AsEnumerable
  • ToLookup - Same as AsEnumerable
Authors:
  • Ryhon
Dependencies:
none
Versions:
0.1.2 2021-Mar-09
0.1.1 2021-Mar-08
0.1.0 2021-Mar-06
~main 2021-Mar-09
Show all 4 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 0 downloads total

Score:
0.5
Short URL:
dlq.dub.pm