pike.git/
lib/
modules/
Array.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2003-04-28
2003-04-28 14:37:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>
e0d9377e8e47bc9ef3a33e5811ab4ddb6b8726be (
4
lines) (+
2
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
Updated doc.
Rev: lib/modules/Array.pmod:1.85
542:
//! Flatten a multi-dimensional array to a one-dimensional array. //! @note //! Prior to Pike 7.5.7 it was not safe to call this function
-
//! with cyclic data-structures.
The method always terminates
-
//! now, but cyclic input might not yield a useful result.
+
//! with cyclic data-structures.
array flatten(array a, mapping|void state) { if (state && state[a]) return state[a];