RiffleAlternatives
RiffleAlternatives[trueList,falseList,boolList]⟹combinedList
combines the elements of trueList with falseList by mapping over boolList and selecting the next element from the trueList for a True Bool or from falseList for a False Bool.
Details
-
IncorrectBoolCounts The length of the first list has to equal to the number of True instances in the last list, while the length of the second list has to equal to the number of False instances in the last list. MismatchedListLength The combined length of the first two input lists must match the length of the last input list.
Input
Output