Morgengrauner Dokumentation
Dateipfad: /home/mud/mudlib/doc/efun/m_reallocateSYNOPSIS
mapping m_reallocate(mapping m, int width)
BESCHREIBUNG
Erzeugt ein neues Mapping mit Werten pro Key und fuellt das
Mapping mit den Werten aus . Wenn weniger als Werte
pro Key hat, werden im neuen Mapping die restlichen Werte auf 0
gesetzt. Wenn mehr als Werte pro Key hat, werden die
ueberzaehligen Werte ignoriert.
Das urspruengliche Mapping wird nicht veraendert.
BEISPIELE
mapping m = ([ "foo":1;2;3, "bar":4;5;6 ])
m_reallocate(m, 1) --> liefert ([ "foo":1, "bar:4 ])
m_reallocate(m, 4) --> liefert ([ "foo":1;2;3;0, "bar:4;5;6;0 ])
GESCHICHTE
Eingefuehrt in LDMud 3.2.6, auf Vorschlag von Tubmud.
SIEHE AUCH
m_allocate(E), m_values(E), widthof(E)
zurück zur Übersicht