Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Standard/src/Arrays/Arrays.qs
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ namespace Microsoft.Quantum.Arrays {
/// ```qsharp
/// let array = [10, 11, 12];
/// // The following line returns [10, 12, 15, 2, 2, 2].
/// let output = Padded(-6, array, 2);
/// let output = Padded(-6, 2, array);
/// // The following line returns [2, 2, 2, 10, 12, 15].
/// let output = Padded(6, array, 2);
/// let output = Padded(6, 2, array);
/// ```
function Padded<'T> (nElementsTotal : Int, defaultElement : 'T, inputArray : 'T[]) : 'T[] {
let nElementsInitial = Length(inputArray);
Expand Down