[ prog / sol / mona ]

prog


Literally Hitler

1 2020-04-26 18:31

What kind of example is that?

in https://en.wikibooks.org/wiki/Scheme_Programming/Macros

(match some-value (literally-hitler)
 ((literally-hitler . rest) ; First element is literally Hitler.
  (error "Found the Nazi"))
 (((a b) second . rest) ; First element is a two-element list.
  (display a))
 ((first second . rest) ; It's a list with at least two elements.
    (display (list first second)))
 (else #f))
10


VIP:

do not edit these