fork download
  1. local function is(subject)
  2. local queries = {}
  3. -- queries.subject = subject
  4.  
  5. queries.funkier_than = function(what)
  6. return subject > what
  7. end
  8.  
  9. return queries
  10. end
  11.  
  12.  
  13.  
  14. assert( not is(1).funkier_than(1) )
  15. assert( is(2).funkier_than(1) )
Success #stdin #stdout 0.02s 2536KB
stdin
Standard input is empty
stdout
Standard output is empty