stdlib: Skeleton implementation of proposed KeyPath API.

Handles projection of stored struct and class properties. Most other functionality TODO.
This commit is contained in:
Joe Groff
2017-03-10 17:38:34 -08:00
parent 63d064fe11
commit cdbdb7a6e8
5 changed files with 1212 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ struct CustomIndex : Comparable {
% for index in ['Int', 'CustomIndex']:
% indexLabel = 'Custom' if index == 'CustomIndex' else ''
/// A rump implementation of Collection.
struct ${indexLabel}${mutable}${rangeReplaceable}${capability}Butt
: ${mutable}Collection
% if rangeReplaceable: