get Boolean Table
fun <T> getBooleanTable(condition: SimplifiedCondition<T>, conditions: List<SimplifiedCondition<T>>): MutableMap<List<Int>, Int>
Content copied to clipboard
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