K-APL Dictionary: Difference between revisions
Content added Content deleted
(add ∪) |
(finish all functions) |
||
Line 67:
|-
| <code>∪</code> || colspan="4" | <code>?</code> || colspan="4" | <code>(?,)</code>
|-
| <code>⍳</code> || colspan="4" | <code>!</code> || colspan="4" | <code>?</code>
|-
| <code>⍸</code> || colspan="4" | <code>&</code> || <code>_bin</code> || || <code>'</code> || <code>bin</code>
|-
| <code>⍋</code> || colspan="4" | <code><</code> || colspan="4" |
|-
| <code>⍒</code> || colspan="4" | <code>></code> || colspan="4" |
|-
| <code>≢</code> || colspan="4" | <code>#</code> || colspan="4" | <code>(~~)</code>
|-
| <code>⍎</code> || || || colspan="2" | <code>.</code> || colspan="4" |
|-
| <code>⍕</code> || colspan="4" | <code>$</code> ||
|-
| <code>⊥</code> || colspan="4" | || <code>_vs</code> || || <code>\</code> || ||
|-
| <code>⊤</code> || colspan="4" | || <code>_sv</code> || || <code>/</code> || ||
[[Category:Dictionaries]]
[[Category:Incomplete Pages]]
|
Revision as of 06:41, 29 June 2022
This page is incomplete.
This page contains information on the translation of APL code to K and vice versa.
Due to major differences in APL and K's array models, some of these may not be completely accurate. Some are hence purposefully left blank, and some may not translate exactly. K9 will not be added here until it is finalized.
Terminology
APL | K |
---|---|
Simple Scalar | Atom |
Scalar | No Equivalent |
Function | Verb |
Operator | Adverb |
Primitives
APL | Monad | Dyad | |||||||
---|---|---|---|---|---|---|---|---|---|
K3 | K4 | K6 | K7 | K3 | K4 | K6 | K7 | ||
* |
_exp |
exp |
exp (oK only) |
exp |
{*/y#x} for integer y
| ||||
⍟ |
_log |
log |
log (oK only) |
log |
_log |
xlog |
{(log x)%log y}
| ||
! |
(*/1+) |
{{(*/x+y)%*/y}[y-x;1+!x]}
| |||||||
○ |
(3.141592654*) |
See here | sin , cos ,.. |
sin , cos (oK only, more in iKe) |
sin , cos ,..
| ||||
~ |
~ |
{x@&(#y)=y?/:x} |
^
| ||||||
? |
(1 _draw) |
?: |
_draw |
?
| |||||
⍲ |
(~&)
| ||||||||
⍱ |
(~|)
| ||||||||
, |
,
| ||||||||
⍪ |
,' |
||||||||
⌽ |
|: |
! |
rotate |
{(x_y),x#y}
| |||||
↑ |
#
| ||||||||
↓ |
_
| ||||||||
⊂ |
, |
_ *
| |||||||
∊ |
,// |
_in |
in |
in (oK only), {~^y?x} |
in
| ||||
⊃ |
* |
@
| |||||||
∩ |
{x^x^y}
| ||||||||
∪ |
? |
(?,)
| |||||||
⍳ |
! |
?
| |||||||
⍸ |
& |
_bin |
' |
bin
| |||||
⍋ |
< |
||||||||
⍒ |
> |
||||||||
≢ |
# |
(~~)
| |||||||
⍎ |
. |
||||||||
⍕ |
$ |
||||||||
⊥ |
_vs |
\ |
|||||||
⊤ |
_sv |
/ |