m functio rename

Signed-off-by: Mattias Andrée <maandree@operamail.com>
implement map

Signed-off-by: Mattias Andrée <maandree@operamail.com>