index.carbon 370 B

123456789
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. package Core library "prelude/operators/index";
  5. interface IndexWith(SubscriptType:! type, ElementType:! type) {
  6. fn At[self: Self](subscript: SubscriptType) -> ElementType;
  7. }