getBooleanTable

fun <T> getBooleanTable(condition: SimplifiedCondition<T>, conditions: List<SimplifiedCondition<T>>): MutableMap<List<Int>, Int>

Make boolean table and check condition results by row

Parameters

condition

difficult composite condition (example A || B)

conditions

uniq simple operands (example A, B)

Example

input:

condition = A || B

conditions = A, B

return => Map

0, 0 => 0

0, 1 => 1

1, 0 => 1

1, 1 => 1