Skip to content

Commit

Permalink
Apply suggestions from oscar code review
Browse files Browse the repository at this point in the history
Co-authored-by: Oscar Spencer <[email protected]>
  • Loading branch information
spotandjake and ospencer authored Dec 29, 2024
1 parent 7bd5650 commit 870cfbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stdlib/list.gr
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ provide module Associative {
}
}
/**
* Provides the first value in the list of key-value pairs that matches the given key.
* Retrieves the first value in the list of key-value pairs that matches the given key.
*
* @param key: The key to search for
* @param list: The list of key-value pairs
Expand Down Expand Up @@ -1040,14 +1040,14 @@ provide module Associative {
}

/**
* Provides a new list with the first value in the list of key-value pairs that matches the given key replaced.
* Creates a new list with the first value in the list of key-value pairs that matches the key replaced.
* If the key is not found the item is appended to the list.
*
* @param key: The key to replace
* @param value: The new value to set
* @param list: The list of key-value pairs
*
* @returns The new list with the key-value pair replaced
* @returns A new list with the key-value pair replaced
*
* @example
* let data = [
Expand All @@ -1070,7 +1070,7 @@ provide module Associative {
}

/**
* Provides a new list with the first value in the list of key-value pairs that matches the given key removed.
* Creates a new list with the first value in the list of key-value pairs that matches the key removed.
* If the key is not found, the list is returned unchanged.
*
* @param key: The key to remove
Expand Down

0 comments on commit 870cfbd

Please sign in to comment.