79766560

Date: 2025-09-16 18:24:02
Score: 1.5
Natty:
Report link

This feature has been added with Swift 6.2 and InlineArray.

https://developer.apple.com/documentation/swift/inlinearray

struct Game {
  // Shorthand for InlineArray<40, Sprite>
  var bricks: [40 of Sprite]

  init(_ brickSprite: Sprite) {
    bricks = .init(repeating: brickSprite)
  }
}
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Exascale