diff options
| -rw-r--r-- | challenge-279/conor-hoekstra/ch-1.bqn | 9 | ||||
| -rw-r--r-- | challenge-279/conor-hoekstra/ch-2.bqn | 11 |
2 files changed, 20 insertions, 0 deletions
diff --git a/challenge-279/conor-hoekstra/ch-1.bqn b/challenge-279/conor-hoekstra/ch-1.bqn new file mode 100644 index 0000000000..babe0fd000 --- /dev/null +++ b/challenge-279/conor-hoekstra/ch-1.bqn @@ -0,0 +1,9 @@ +# For up to date code: +# https://github.com/codereport/bqn-code/blob/main/pwc/279-1.bqn + +SortLetters ← ⍋⊸⊏ + +# Tests +•Show ⟨3, 2, 1, 4⟩ SortLetters "REPL" # PERL +•Show ⟨2, 4, 1, 3⟩ SortLetters "AURK" # RAKU +•Show ⟨5, 4, 2, 6, 1, 3⟩ SortLetters "OHYNPT" # PYTHON diff --git a/challenge-279/conor-hoekstra/ch-2.bqn b/challenge-279/conor-hoekstra/ch-2.bqn new file mode 100644 index 0000000000..bec9425ab1 --- /dev/null +++ b/challenge-279/conor-hoekstra/ch-2.bqn @@ -0,0 +1,11 @@ +# For up to date code: +# https://github.com/codereport/bqn-code/blob/main/pwc/279-2.bqn + +⟨IsVowel⟩ ⇐ •Import "../lib/string.bqn" + +SplitString ← ¬2|·+´IsVowel¨ + +# Tests +•Show SplitString "perl" # 0 +•Show SplitString "book" # 1 +•Show SplitString "good morning" # 1 |
