Jump to content

CSV data manipulation: Difference between revisions

Add BQN implementation
m (→‎{{header|Phix}}: added syntax colouring, made p2js compatible)
(Add BQN implementation)
Line 422:
</pre>
 
=={{header|BQN}}==
<lang bqn>
 
csvstr ← ⟨"C1,C2,C3,C4,C5", "1,5,9,13,17", "2,6,10,14,18", "3,7,11,15,19", "4,8,12,16,20"⟩
 
Split ← (⊢-˜¬×+`)∘=⟜','⊸⊔
strdata ← >Split¨csvstr
intdata ← •BQN¨⌾(1⊸↓) strdata
sums ← ⟨"SUMS"⟩ ∾+´˘ 1↓ intdata
done ← sums ∾˜˘ intdata
</lang>
 
=={{header|C}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.