Function: cl-oddp

cl-oddp is a byte-compiled function defined in cl-lib.el.gz.

Signature

(cl-oddp INTEGER)

Documentation

Return t if INTEGER is odd.

Other relevant functions are documented in the number group.

View in manual

Shortdoc

;; number
(cl-oddp 3)
    => t

Aliases

oddp (obsolete since 27.1)

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-lib.el.gz
(defun cl-oddp (integer)
  "Return t if INTEGER is odd."
  (eq (logand integer 1) 1))