DOCS: Update documentation for selectors.

This commit is contained in:
Jeremy Wall 2018-08-19 09:35:13 -05:00
parent 068435d80e
commit 263cccc97a

View File

@ -159,8 +159,8 @@
//! #### Selectors //! #### Selectors
//! //!
//! Selectors are references to a bound value in ucg. They can index arbitrarily deep into either tuples or lists. //! Selectors are references to a bound value in ucg. They can index arbitrarily deep into either tuples or lists.
//! The head of a selector can be any expression that resolves to a tuple or list. Optionally a selector can also be //! The head of a selector can be a tuple or list or symbol. Optionally a selector can also be followed by either a
//! followed by either a bareword to index a tuple field or an integer to index a list position. //! bareword to index a tuple field or an integer to index a list position.
//! //!
//! The simplest selector is just a reference to a bound value by name. //! The simplest selector is just a reference to a bound value by name.
//! //!