15 lines
454 B
APL
15 lines
454 B
APL
⍝ 1: Let's Split!
|
||
{(0>⍺)⌽(⊂⍺↑⍵),⊂⍺↓⍵}
|
||
((0>⊣)⌽((⊂↑),(⊂↓)))
|
||
⍝ 2: Character Building
|
||
{(~⍵∊127+⍳64)⊂⍵}
|
||
⍝ 3: Excel-lent Columns
|
||
(26⊥64-⍨⎕UCS)
|
||
⍝ 4: Take a Leap
|
||
(1 3∊⍨(0+.=400 100 4∘.|⊢))
|
||
⍝ 6: Please Move to the Front
|
||
{⍵[⍋⍺≠⍵]}
|
||
⍝ 7: See You in a Bit
|
||
{f←⍸∘⌽(2∘⊥⍣¯1)⋄∧/(f⍺)∊f⍵}
|
||
⍝ 8: Zigzag Numbers
|
||
(∧/2 ¯2∊⍨2-/∘×2-/(10∘⊥⍣¯1))
|