📁
SICP
  • README
  • Building Abstractions With Procedures
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
Powered by GitBook
On this page

Was this helpful?

  1. Building Abstractions With Procedures

4

(define (a-plus-abs-b a b) ((if (> b 0) + -) a b))

a plus the absolute value of b is a plus b if b is greater than 0, otherwise is a subtract b.

Previous3Next5

Last updated 4 years ago

Was this helpful?