Help for this page

Select Code to Download


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