(sagittarius object) - Convenient refs and coercion procedures

Library (sagittarius object)

This library provides convenient procedures.

Generic ref object key args ...
Generic (setter ref) object key value

Returns given object's values associated with key. The default implementation uses slot-ref.

Following classes are specialised by default.

Generic ->string object

Returns string represented object.

Generic ->integer object

Returns integer represented object.

Generic ->number object

Returns number represented object.

The default value is 0.

If the given object is number, it returns given object itself.

If the given object is string, it uses string->number as a conversion procedure.

If the given object is character, it uses char->integer as a conversion procedure.