aboutsummaryrefslogtreecommitdiff
path: root/challenge-308/richard-park/apl/CountCommon.aplf
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-308/richard-park/apl/CountCommon.aplf')
-rw-r--r--challenge-308/richard-park/apl/CountCommon.aplf10
1 files changed, 10 insertions, 0 deletions
diff --git a/challenge-308/richard-park/apl/CountCommon.aplf b/challenge-308/richard-park/apl/CountCommon.aplf
new file mode 100644
index 0000000000..ac2d5a17e2
--- /dev/null
+++ b/challenge-308/richard-park/apl/CountCommon.aplf
@@ -0,0 +1,10 @@
+ CountCommon←{
+⍝ Can be defined as the 2-train atop
+ CountCommon←≢∩
+⍝ Literally "count the intersection"
+⍝ ≢ ∩
+⍝ Example
+⍝ 'perl' 'weekly' 'challenge' (≢∩) 'raku' 'weekly' 'challenge'
+⍝ 2
+ ≢⍺∩⍵
+ }