Go to the first, previous, next, last section, table of contents.


substIf

Function: substIf { new fn list -> list }
file: 10-C-lists.muf
package: muf
status: alpha

The substIf function returns a copy of the given list in which all elements satisfying fn are replaced by new:

Stack:
[ [ 'a' 'B' 'c' ]l [ 'D' 'e' 'f' ]l ]l --> list
Stack:
'_' :: upperCase? ; list substIf printList
Stack: "[ [ 'a' '_' 'c' ]l [ '_' 'e' 'f' ]l ]l"

See section nsubstIf.


Go to the first, previous, next, last section, table of contents.