Hi,
or in other way, not elegant but I assume from the light testing it is
working
∇r←grade marks
code←'FDCCBBAA'
r← code[⌊(4+marks)÷5]
grade 10 10⍴⍳100
FF
FF
FF
FF
FF
FF
FD
CC
BB
AA
HiH
Regards,
Hi Kacper,
the DUMP-HTML command was meant to create a workspace listing that
can
be directly displayed as a web page. So that you can publish your
workspace
without any editing. I made this command mainly for myself so that
I can publish
Hi,
how about
∇find_grade[⎕]∇
∇
[0] r←find_grade g;gm;gl
[1] gm←0 65 70 80 90
[2] gl←'FDCBA'
[3] r←,¨gl[+/[1]gm ∘.≤ g]
∇
m,find_grade m←5 2⍴0 64 65 69 70 79 80 89 90 100
0 64 F F
65 69 D D
70 79 C C
80 89 B B
90 100 A A
Regards
Hans-Peter
Am 14.04.2
When loading from HTML file (cool feature, why is it undocumented?),
entities that occur at the end of a line are not correctly parsed.
Normally it should occur only in comments, but still looks like a bug.
)CLEAR
CLEAR WS
⎕FX 'a' '⍝<>'
a
⎕CR'a'
a
⍝<>
)DUMP-HTML 9 a
DUM
Hi,
Your ⎕IO is 0
⎕IO←1
Display (2 2 ⍴ 104 105 106 107) ⍳ (3 4 ⍴ 100+⍳100)
┏→━━┓
↓┏⊖┓ ┏⊖┓ ┏⊖┓ ┏→━━┓┃
┃┃0┃ ┃0┃ ┃0┃ ┃1 1┃┃
┃┗━┛ ┗━┛ ┗━┛ ┗━━━┛┃
┃┏→━━┓ ┏→━━┓ ┏→━━┓ ┏⊖┓ ┃
┃┃1 2┃ ┃2 1┃ ┃2 2┃ ┃0┃ ┃
┃┗━━━┛ ┗━━━┛ ┗━━━┛ ┗━┛ ┃
┃┏⊖┓ ┏⊖┓ ┏⊖┓ ┏⊖┓ ┃
┃┃0┃