f-990714-6

ldmud-3.2.9/src/bugs/f-990714-6 · 452 B

From the archive ldmud-329.tar.gz

Download the archive   « Back to the archive contents

Short: New efun flatten_array()
From: Tubmud
Type: Feature
State: Unclassified

varargs mixed *flatten_array(mixed *m,status recursive);
          flattens any array, if recursive is != 0 even recursive:
          flatten_array(({ 1,({ 2,3,({ 4 }),5 }),({ ({ ({ 6 }),7,8 }) }) }))
          ==> ({ 1,2,3,({ 4 }),5,({ ({ 6 }),7,8 }) })
          flatten_array(({ 1,({ 2,3,({ 4 }),5 }),({ ({ ({ 6 }),7,8 }) }) }),1)
          ==> ({ 1,2,3,4,5,6,7,8 })


Site Stats

Snippets: 1791
Codebases: 571