store clear! - part-cw/lambdanative GitHub Wiki
(store-clear! store ids0)
store-clear! clears entries from the data store
Parameter | Description |
---|---|
store | The store name |
ids0 | Id or list of ids to be cleared. |
Example
Example 1: Create a store, set some values, clear some values and show that it is indeed cleared
> (define store (make-store "main"))
> (store-set! store "HR" 78 "vitals")
> (store-set! store "SpO2" 100 "vitals")
> (store-set! store "NIBPs" 120 "vitals")
> (store-set! store "NIBPd" 80 "vitals")
> (store-listcat store "vitals")
(("HR" 78) ("SpO2" 100) ("NIBPs" 120) ("NIBPd" 80))
> (store-clear! store (list "NIBPs" "NIBPd"))
> (store-listcat store "vitals")
(("HR" 78) ("SpO2" 100))