Skip to content

Add collection signature files and introduce IndexedList API surface - #21

Closed
xperiandri with Copilot wants to merge 9 commits into
mainfrom
copilot/add-bindings-for-immutable-collections
Closed

xperiandri with Copilot wants to merge 9 commits into
mainfrom
copilot/add-bindings-for-immutable-collections

Conversation

Copilot AI commented May 24, 2026 •

Copy link
Copy Markdown

This issue asks the library to move toward full immutable-collection bindings with explicit .fsi signatures and consistent collection naming. This PR takes a focused step in that direction by adding signature files for the existing collection modules and introducing IndexedList as the ImmutableList-aligned API surface.

  • Signature-first module surface

    • Added .fsi files for the current collection modules:
      • FlatList
      • ImmutableList
      • IndexedList
      • Queue
      • Stack
      • HashMap / SortedMap
      • HashSet / SortedSet
      • IndexedSeq
      • Seq
    • Updated project compile order so signatures define the public surface explicitly.
  • New IndexedList binding

    • Added IndexedList.fs / IndexedList.fsi.
    • Exposes IndexedList<'T> and IIndexedList<'T> over System.Collections.Immutable.ImmutableList<'T> / IImmutableList<'T>.
    • Provides the initial core operations needed for the renamed collection surface:
      • empty
      • ofSeq
      • toSeq
      • length
      • head
  • Seq interop for the new collection name

    • Added Seq.ofIndexedList
    • Added Seq.toIndexedList
    • Kept the existing immutable-list interop available while making the new collection name usable immediately.
  • Test metadata cleanup

    • Added centralized test category support in TestCategories.fs.
    • Added an IndexedList smoke test using the project’s category attribute pattern.

Example:

open FSharp.Collections.Immutable

let indexed =
    IndexedList.ofSeq [ 1; 2; 3 ]

let first = IndexedList.head indexed
let asArray = indexed |> Seq.ofIndexedList |> Microsoft.FSharp.Collections.Seq.toArray

Copilot AI linked an issue May 24, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add bindings for all System.Collections.Immutable collections Add collection signature files and introduce IndexedList API surface May 24, 2026
Copilot AI requested a review from xperiandri May 24, 2026 19:05
@xperiandri
xperiandri force-pushed the main branch 3 times, most recently from 20d98e5 to 17f93b7 Compare October 18, 2026 12:50
Copilot AI and others added 9 commits October 18, 2026 14:51
@xperiandri
xperiandri force-pushed the copilot/add-bindings-for-immutable-collections branch from bc5eb09 to d1450dd Compare October 18, 2026 13:03
@xperiandri
xperiandri force-pushed the main branch 2 times, most recently from 5d56ba0 to 9d7316e Compare October 20, 2026 16:16
@xperiandri
xperiandri force-pushed the main branch 4 times, most recently from 34cae7b to 140e532 Compare November 15, 2026 01:08
@xperiandri xperiandri closed this Nov 18, 2026
@xperiandri
xperiandri deleted the copilot/add-bindings-for-immutable-collections branch November 18, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Have bindings for all collectins

2 participants