extend("array")

keyed = [ name:"Alice" ]

# Direct usage
sput( array:assoc("city", "London", keyed) ) // => [ name:"Alice", city:"London" ]

# Partial usage
setter = array:assoc("color", "blue")
sput( setter(keyed) ) // => [ name:"Alice", color:"blue" ]

# Placeholder usage
bananaSetter = array:assoc(_, "banana", keyed)
sput( bananaSetter("fruit") ) // => [ name:"Alice", fruit:"banana" ]

