file: 10-C-lists.muf package: muf status: alpha
The nsubstIf
function destructively
modifies the given list by replacing all elements
satisfying fn
by new
. (As usual the
n-for-nuke in the name signals a destructive list
operation.)
Stack: [ [ 'a' 'B' 'c' ]l [ 'D' 'e' 'f' ]l ]l --> list Stack: '_' :: upperCase? ; list nsubstIf printList Stack: "[ [ 'a' '_' 'c' ]l [ '_' 'e' 'f' ]l ]l"
See section substIf.
Go to the first, previous, next, last section, table of contents.