aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHVukman <peterslopp@googlemail.com>2025-07-28 16:15:22 +0200
committerGitHub <noreply@github.com>2025-07-28 16:15:22 +0200
commit596c679809c2a2172c8e42b99b25ae9247d11179 (patch)
tree6685ffccaea6328908fa724dec472f249acc3cd7
parent81fa050b21447a48e12d99d919f3c9a7d7d92511 (diff)
downloadperlweeklychallenge-club-596c679809c2a2172c8e42b99b25ae9247d11179.tar.gz
perlweeklychallenge-club-596c679809c2a2172c8e42b99b25ae9247d11179.tar.bz2
perlweeklychallenge-club-596c679809c2a2172c8e42b99b25ae9247d11179.zip
Update 332_p2.k
-rw-r--r--challenge-332/hvukman/k/332_p2.k2
1 files changed, 2 insertions, 0 deletions
diff --git a/challenge-332/hvukman/k/332_p2.k b/challenge-332/hvukman/k/332_p2.k
index 3ded0ad113..f79f13aaed 100644
--- a/challenge-332/hvukman/k/332_p2.k
+++ b/challenge-332/hvukman/k/332_p2.k
@@ -1,2 +1,4 @@
+/ check if element of vector is divisible by 2
odd: {0=2!+/x=inp}
+/ looking for character x in word inp; inp is set as global variable
{inp::x ; $[0=(+/{odd x}'x);"true";"false" ]}'("weekly";"perl";"challenge")