Skip to content

Commit

Permalink
util/parse.bqn: use a better env
Browse files Browse the repository at this point in the history
  • Loading branch information
shnarazk committed Jul 22, 2023
1 parent a6993d8 commit 35265cc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions utils/parse.bqn
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/usr/bin/env cbqn
# summarize a CSV file generated by `benchm`
# Usage: parse.bqn generated.csv
env {
v ⥊⊑⊐⟜'='⊸(1)¨{-¬(¬×1++`)𝕩=@+10}⊸⊔1⊑•SH<"env"
Map ⇐ {𝕨{d𝕊⟨kv⟩:v;d𝕊s:d}¨(</v˜)˘𝕩{⟜⊑}⌜v}
env{
vars>⊐⟜'='⊸(1)¨{-¬(¬×1++`)𝕩=@+10}⊸⊔1⊑•SH<"env"
Var ⇐ {⊐⟜𝕩⊸⊏⟜(∾⟜@vars}
Map ⇐ {@𝕩 ? 𝕨 ; 𝕩}¨Var
}
csvutil "/csv.bqn""/util.bqn"Import(∾˜)¨<"."env.Map"BQN_LIB"
Colored {
Expand Down

0 comments on commit 35265cc

Please sign in to comment.