Compile::cpiter

Details

  • This message is generated when the indicated expression does not have the form of an iterator.
  • An iterator is a list that gives the number of iterations, or the iteration variable and the range of iteration, in functions such as Do and Table.
  • Off[message] switches off the message; On[message] switches it on. For example: Off[Compile::cpiter].

Examples

Basic Examples  (1)

An error occurs because an integer is not a valid iteration specification:

This shows a valid iteration specification: