List.Count
Back to table
/*
ScriptEngine
List.Count
[int count]=List.Count(listObj);
listObj : an object that has the list structure.
count : the number of the element in the list.
Get the element from a list.
This module is free of charge.
*/
//-------------------------------------------------------------------
// 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
MatchLogicFunction PermuteLogicFunction IsBiUnateFunctionTo IsInverse IsPositiveFunction IsSelfAntiDualFunction IsUnateFunctionTo AndXor ToAndOr binary() MinValue BCD binary Convert AddXorTerm ToShannonTree Diagram DiagramGateName FeedbackSystem logicvardef() Minus MostSignificantDigit PositiveDecimalToMantissa Solve StateTransitionBasedly BestVariableOrder GetPositiveLogicFunction CreateDummyLogicFunction EnlargeLogicFunction Zero
The website is simply translated by using the Google Translate. Please inform us if you find the wrong/funny/weird translation.