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
A red light is flashing: Y
Printer is unrecognised: Y
)
'ACTION_NAMES ACTIONS'=: |:':'&cut;._2 noun define
Check the power cable: -
Check the printer-computer cable: X
Ensure printer software is installed: X
Check/replace ink: X
Check for paper jam: -
)
|