Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for mapWithIndex (0.08 sec)

  1. android/guava/src/com/google/common/collect/Streams.java

      }
    
      /**
       * Returns a stream consisting of the results of applying the given function to the elements of
       * {@code stream} and their indices in the stream. For example,
       *
       * <pre>{@code
       * mapWithIndex(
       *     Stream.of("a", "b", "c"),
       *     (e, index) -> index + ":" + e)
       * }</pre>
       *
       * <p>would return {@code Stream.of("0:a", "1:b", "2:c")}.
       *
       * <p>The resulting stream is <a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  2. manifests/addons/dashboards/lib/lib-grid.libsonnet

          local col = std.mod(index, panelsPerRow);
          panel + { gridPos+: { x: panel.gridPos.w * col } };
    
        local panelsBeforeRowsWithX = std.mapWithIndex(CalculateXforPanel, panelsBeforeRows);
    
        local rowPanelsWithX =
          std.map(
            function(row)
              row + { panels: std.mapWithIndex(CalculateXforPanel, row.panels) },
            rowPanels
          );
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Jun 04 18:05:06 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Streams.java

      }
    
      /**
       * Returns a stream consisting of the results of applying the given function to the elements of
       * {@code stream} and their indices in the stream. For example,
       *
       * <pre>{@code
       * mapWithIndex(
       *     Stream.of("a", "b", "c"),
       *     (e, index) -> index + ":" + e)
       * }</pre>
       *
       * <p>would return {@code Stream.of("0:a", "1:b", "2:c")}.
       *
       * <p>The resulting stream is <a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 36.8K bytes
    - Viewed (0)
Back to top