/usr/lib/s9fes/help/get-prop is in scheme9 2010.11.13-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | S9 LIB (get-prop plist symbol) ==> object
(put-prop plist symbol object) ==> plist
(rem-prop plist symbol) ==> plist
(put-prop! <variable> symbol object) ==> plist
(rem-prop! <variable> symbol) ==> plist
A property list (plist) is a list of the form
(symbol1 object1 symbol2 object2 ...)
GET-PROP returns the object (property) following the given
SYMBOL or #F if SYMBOL does not exist in an odd position
in the PLIST.
PUT-PROP returns a new plist in which the given OBJECT is
the property associated with SYMBOL. When SYMBOL is alreay
in the PLIST, the existing association will be removed.
REM-PROP returns a new plist with the given SYMBOL and the
associated property removed.
PUT-PROP! adds a new property to the plist bound to the
given <variable>. The variable will be bound to the new
list. REM-PROP! removes a property from a plist that is
bound to the <variable>.
(get-prop '() 'foo) ==> #f
(put-prop '() 'foo 42) ==> (foo 42)
(get-prop '(foo 42) 'foo) ==> 42
(rem-prop '(foo 42) 'foo) ==> ()
|