Skip to content

Commit e4ab106

Browse files
SE-0093 - Add public base property to slices
1 parent 7a736cc commit e4ab106

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stdlib/public/core/Slice.swift.gyb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,11 @@ public struct ${Self}<Base : ${BaseRequirements}>
435435
% else:
436436
internal let _base: Base
437437
% end
438+
439+
/// The underlying collection of the slice.
440+
public var base: Base {
441+
return _base
442+
}
438443
}
439444

440445
% end

0 commit comments

Comments
 (0)