Anonymous user
Strip a set of characters from a string: Difference between revisions
Strip a set of characters from a string (view source)
Revision as of 15:27, 6 June 2011
, 13 years ago→{{header|Icon}} and {{header|Unicon}}
No edit summary |
|||
Line 14:
procedure stripChars(s,cs)
ns := ""
s ? while ns ||:= 2(not pos(0), tab(upto(cs)|0)
return ns
end</lang>
|