Array::plen StringReplacePart::plen

更多信息

  • This message is generated when the length of the second argument in Array is not the same as the length of the third argument.
  • This message is generated when StringReplacePart is used for multiple replacements and the number of replacement strings is not the same as the number of position specifications.
  • The second argument in StringReplacePart gives the replacement strings and the third argument gives the position specifications.
  • Off[message] switches off the message; On[message] switches it on. For example: Off[Array::plen].

范例

基本范例  (2)

The second and third arguments do not have the same length:

This shows valid arguments in Array:

The length of the second argument is not the same as the length of the third argument:

This shows valid arguments for multiple string replacements using StringReplacePart: