Logo

Programming-Idioms

History of Idiom 3 > diff from v28 to v29

Edit summary for version 29 by Kotik:
[Scheme] begin is redundant here

Version 28

2016-11-30, 22:32:10

Version 29

2017-01-11, 10:18:37

Idiom #3 Create a procedure

Like a function which doesn't return any value, thus has only side effects (e.g. Print to standard output)

Idiom #3 Create a procedure

Like a function which doesn't return any value, thus has only side effects (e.g. Print to standard output)

Code
(define (finish name)
    (begin
        (display "My job here is done. Goodbye ")
        (display name)
        (newline)))
Code
(define (finish name)
    (display "My job here is done. Goodbye ")
    (display name)
    (newline))
Comments bubble
This is a short syntax for a lambda definition.
Comments bubble
This is a short syntax for a lambda definition.
Demo URL
http://repl.it/SII
Demo URL
http://repl.it/SII