- or download this
(defun func1 (x) (+ 1 (* 2 x)))
- or download this
(func1 3) ; Function call
(+ 1 (* 2 3)) ; All occurrences of 'x' replaced with '3'
(+ 1 6) ; Reduce
7 ; Reduce
- or download this
(defun func2 (x) (+ 1 (* 2 x) (* 3 x)))
- or download this
(func2 3) ; Function call
(+ 1 (* 2 3) (* 3 3)) ; All ocurrences of 'x' replaced with '3'
- or download this
my @str_lengths = map { length } @strs;
- or download this
my @str_lengths = do {
use threadsafe;
map { length } @strs;
};