List.Get
Back to table
/*
ScriptEngine
List.Get
[result]=List.Get(listObj, int index);
listObj : an object that has the list structure.
index : the index of the sub object
result : the sub object.
Get the element from a list.
This module is free of charge in the LogicScript.
*/
//-------------------------------------------------------------------
// examples
table=TruthTable()
{
2'b00 => 4'b1000;
2'b01 => 4'b0100;
2'b10 => 4'b0010;
2'b11 => 4'b0001;
}
[fandor]=TruthTable.ToAndOr(table);
[fpos]=TruthTable.GetPositiveLogicFunction(table);
[fneg]=TruthTable.GetNegativeLogicFunction(table);
[fd]=TruthTable.GetDontCareLogicFunction(table);
f1=List.Get(fpos,2);
f2=List.Get(fneg,2);
Print(f1,f2, List.Count(fd));
//-------------------------------------------------------------------
// result
IsBiUnateFunctionTo IsSymmetricFunction IsZeroFunction Binary BinaryNumberToString StringToBinaryNumber binaryioset() binaryioset ToDiagram ToNotFunction Get minterm Minus Nand PermutationMatrix real() MaxSAT Save ShortestInputsForTransition Assign CreateCompactTable Compatibility MultiCover StateDeviceName CreateFromLogicFunctions RandomGenerate CreateDummyLogicFunction IndependentBase ShannonExpansion Zero