aboutsummaryrefslogtreecommitdiff
path: root/challenge-135
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-135')
-rw-r--r--challenge-135/conor-hoekstra/ch-01.bqn8
1 files changed, 3 insertions, 5 deletions
diff --git a/challenge-135/conor-hoekstra/ch-01.bqn b/challenge-135/conor-hoekstra/ch-01.bqn
index 7d91a8a263..c93246ea4a 100644
--- a/challenge-135/conor-hoekstra/ch-01.bqn
+++ b/challenge-135/conor-hoekstra/ch-01.bqn
@@ -1,9 +1,7 @@
-Fmt ← '0'+·⌽10|·⌊⊢÷(10⋆↕∘(⌊1+10⋆⁼1⌈|))
-
MiddleThreeDigits ← {
- 0=2|≠Fmt|𝕩 ? "Even # of digits" ;
- 3>≠Fmt|𝕩 ? "Too short" ;
- (3↑(2÷˜¯3+≠)↓⊢)Fmt|𝕩
+ 0=2|≠•Fmt|𝕩 ? "Even # of digits" ;
+ 3>≠•Fmt|𝕩 ? "Too short" ;
+ (3↑(2÷˜¯3+≠)↓⊢)•Fmt|𝕩
}
MiddleThreeDigits 1234567 # "345"