Skip to content

Commit

Permalink
chore: update comparisons.scad
Browse files Browse the repository at this point in the history
occurences -> occurrences
  • Loading branch information
eltociear authored Jan 16, 2025
1 parent 8f795bb commit 452f317
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions comparisons.scad
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ function compare_lists(a, b) =
// If `all` is true then returns a list of all indices where the minimum value occurs.
// Arguments:
// vals = vector of values
// all = set to true to return indices of all occurences of the minimum. Default: false
// all = set to true to return indices of all occurrences of the minimum. Default: false
// Example:
// a = min_index([5,3,9,6,2,7,8,2,1]); // Returns: 8
// b = min_index([5,3,9,6,2,7,8,2,7],all=true); // Returns: [4,7]
Expand All @@ -377,7 +377,7 @@ function min_index(vals, all=false) =
// If `all` is true then returns a list of all indices where the maximum value occurs.
// Arguments:
// vals = vector of values
// all = set to true to return indices of all occurences of the maximum. Default: false
// all = set to true to return indices of all occurrences of the maximum. Default: false
// Example:
// max_index([5,3,9,6,2,7,8,9,1]); // Returns: 2
// max_index([5,3,9,6,2,7,8,9,1],all=true); // Returns: [2,7]
Expand Down

0 comments on commit 452f317

Please sign in to comment.