ParameterCollectionOrdering
Helpers & Utilities · AiDotNet.Models.Parameters
Deterministic collection ordering shared by generated model and network surfaces.
Methods
| Method | Summary |
|---|---|
IEnumerable<TKey> OrderedKeys(IEnumerable<KeyValuePair<TKey, TValue>> values) |
Returns dictionary keys in the same canonical order as OrderedValues. |
IEnumerable<TValue> OrderedValues(IEnumerable<KeyValuePair<TKey, TValue>> values) |
Returns dictionary values ordered by the canonical invariant representation of their keys. |
IEnumerable<TValue> Present(IEnumerable<TValue> values) |
Returns an empty sequence for an absent collection without snapshotting its values. |
IEnumerable<TValue> PresentNonNull(IEnumerable<TValue> values) |
Returns only materialized members from a nullable reference collection. |