title: Getting all possible combinations of x booleans (Racket, Scheme)
body: <p>i have a problem. How do I get all possible combinations of x booleans in Racket? (on a low language level)</p>
  
  <p>I need something like that:</p>
  
  <p>For x=1
  (list
  (list false)
  (list true))</p>
  
  <p>For x=2
  (list
  (list false false)
  (list false true)
  (list true false)
  (list true true))</p>
  
  <p>For x=3
  (list
  (list false false false)
  (list false false true)
  (list false true false)
  (list false true true)
  (list true false false)
  (list true false true)
  (list true true false)
  (list true true true))</p>
  
  <p>etc.</p>
  
  <p>I have no idea how to do this in Racket.</p>
  
  <p>Thanks you!</p>