Decision tables: Difference between revisions

m
J: shorten data lines
(Added PicoLisp)
m (J: shorten data lines)
Line 5:
'''Solution''':<lang j>require'strings'
'RULE_NAMES RULES'=: |:':'&cut;._2 noun define
Printer does not print: Y Y Y Y N N N N
A red light is flashing: Y Y N N Y Y N N
Printer is unrecognised: Y N Y N Y N Y N
)
 
'ACTION_NAMES ACTIONS'=: |:':'&cut;._2 noun define
Check the power cable: - - X - - - - -
Check the printer-computer cable: X - X - - - - -
Ensure printer software is installed: X - X - X - X -
Check/replace ink: X X - - X X - -
Check for paper jam: - X - X - - - -
)
 
6,962

edits