map.html

final_realms_fluffos_v1/lib/doc/man/html/efuns/general/map.html · 1.0 KB

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

<HEAD> <TITLE> map - modify an mapping </TITLE> </HEAD> <BODY BACKGROUND=http://www.imaginary.com/~beek/gifs/bg.jpg TEXT=#000000 ALINK=#FFFF00 VLINK=#550000 LINK=#000099> <center> <H1> map - modify an mapping </H1> </center>
<p>
<b> mixed map( mixed x, string fun, object ob, mixed extra, ... ); </b>
<p>
<b> mixed map( mixed x, function f, mixed extra, ... ); </b>
<p>
The (ob, fun) syntax works as if (: call_other, ob, fun :) had been passed as
f.  Map returns a new structure containing the return values of f being applied
to each element of x.  Currently, it can be used on arrays, mappings and
strings.  In the case of mappings, both the key and the value are passed
to the function.  In the case of strings, the characters are passed to the
function one at a time as ints.  extra and all the following arguments are
passed to the function after the element.
<p>
<HR> <ADDRESS> <A HREF=http://wagner.princeton.edu/~tim>  Tim Hollebeek </A> <p> <A HREF="http://www.imaginary.com/~beek/">  Beek </A>@ZorkMUD, Lima Bean, IdeaExchange, TMI-2, and elsewhere </ADDRESS>

Site Stats

Snippets: 1791
Codebases: 571