Draft
Logical Conjunction
76 of 240justlemons
Description:
Introduction to conjunctions
In logic and mathematics, a conjunction is an operation on 2 or more propositions. A conjunction is true if and only if all of its operands are true. In programming, we typically denote a conjunction using "&&", but in logic we typically use "^".
Example of conjunction:
p = 1 < 2 = true
q = 2 < 3 = true
therefore p ^ q is true
In a programming language, we might write this as:
var p = 1 < 2; //true
var q = 2 < 3; //true
var result = p && q; //true
Directions:
For this kata, your task is to implement a function that performs a conjunction operation on 2 or more propositions.
- Should take a boolean array as its only parameter. Array values can be assumed to be non-null.
- Should return true if and only if the value of every operand is true (i.e. every item in the passed array is true).
Logic
Mathematics
Similar Kata:
Stats:
Created | Jul 21, 2015 |
Warriors Trained | 332 |
Total Skips | 12 |
Total Code Submissions | 488 |
Total Times Completed | 240 |
C# Completions | 76 |
JavaScript Completions | 174 |
Total Stars | 2 |
% of votes with a positive feedback rating | 89% of 127 |
Total "Very Satisfied" Votes | 105 |
Total "Somewhat Satisfied" Votes | 16 |
Total "Not Satisfied" Votes | 6 |
Total Rank Assessments | 147 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 8 kyu |