From 740a873f9eeb02ae120aa9d6090076cfcce15a05 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Wed, 11 Nov 2020 11:13:56 -0500 Subject: Vectorize FmtNum so it works on atoms or arrays --- doc/combinator.bqn | 4 ++-- doc/types.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/combinator.bqn b/doc/combinator.bqn index d088a622..62ad4c11 100644 --- a/doc/combinator.bqn +++ b/doc/combinator.bqn @@ -11,7 +11,7 @@ _trans ← {𝕗 At "transform=translate("∾(⊣∾","∾⊢)○FmtNum∾")"˙} Groups ← ("g"At"font-size=20px|text-anchor=middle")_trans˜⌜ rc ← At "class=code|stroke-width=1|rx=12" -rc ∾↩ (Pos⟨¯0.43×w,1⟩)∾"width"‿"height"≍˘FmtNum¨⟨0.86×w,h-55⟩ +rc ∾↩ (Pos⟨¯0.43×w,1⟩)∾"width"‿"height"≍˘FmtNum⟨0.86×w,h-55⟩ cc ← At "r=12|class=code|stroke-width=0" n ← Text∘‿2⥊⟨"y",FmtNum h-37, "fill","currentColor"⟩ case ← (¯1‿1×w÷4.6) ("g"At"font-size=21px|font-family=monospace")_trans¨ 25 @@ -54,7 +54,7 @@ DrawComp ← {𝕊𝕩:(names⊏˜comps⊐𝕩)𝕊𝕩; names 𝕊 spel: (< case Enc¨ ⊢)⎉1 ∾¨´ ⟨ (