deleteStrProp: Difference between revisions
Jump to navigation
Jump to search
(New page: ==Function deleteStrProp== Returns a copy of the [[Macros:string proper ===Usage=== <source lang="mtmacro" line> [h: val = ceil(num)] [h: val = ceiling(num)] </source> ===Examples=== <so...) |
No edit summary |
||
Line 1: | Line 1: | ||
==Function deleteStrProp== | ==Function deleteStrProp== | ||
Returns a copy of the [[Macros:string | Returns a copy of the [[Macros:string property list|string property list]] with the specified key removed. | ||
===Usage=== | ===Usage=== | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: | [h: props = deleteStrProp(props, key)] | ||
</source> | </source> | ||
===Examples=== | ===Examples=== | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[r: | [r: deleteStrProp("a=blah; b=doh; c=meh", "a")] | ||
</source> | </source> | ||
Returns | Returns "b=doh; c=meh". | ||
Revision as of 13:24, 1 December 2008
Function deleteStrProp
Returns a copy of the string property list with the specified key removed.
Usage
[h: props = deleteStrProp(props, key)]
Examples
[r: deleteStrProp("a=blah; b=doh; c=meh", "a")]
Returns "b=doh; c=meh".