Remacs: Port mapc

Created on 12 Oct 2018  路  3Comments  路  Source: remacs/remacs

DEFUN ("mapc", Fmapc, Smapc, 2, 2, 0,
       doc: /* Apply FUNCTION to each element of SEQUENCE for side effects only.
Unlike `mapcar', don't accumulate the results.  Return SEQUENCE.
SEQUENCE may be a list, a vector, a bool-vector, or a string.  */)
  (Lisp_Object function, Lisp_Object sequence)
{
  register EMACS_INT leni;

  leni = XFASTINT (Flength (sequence));
  if (CHAR_TABLE_P (sequence))
    wrong_type_argument (Qlistp, sequence);
  mapcar1 (leni, 0, function, sequence);

  return sequence;
}
Active PR good first issue

Most helpful comment

Hi, I'd like to work on this one

All 3 comments

Hi, I'd like to work on this one

@rodrigo-garcia-leon we have an "active PR" label to add once you make the PR.

@rodrigo-garcia-leon you are very welcome to work on this :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ZelphirKaltstahl picture ZelphirKaltstahl  路  4Comments

socketwiz picture socketwiz  路  5Comments

db48x picture db48x  路  9Comments

Fuco1 picture Fuco1  路  3Comments

hammerandtongs picture hammerandtongs  路  4Comments