20
edits
No edit summary |
No edit summary |
||
Line 32: | Line 32: | ||
=== Function === | === Function === | ||
In the web version of Uiua, we can type in the name of the function or a part of it and when run, the interpreter will format the name to Unicode Symbol, so that we don't need use of non-ASCII keyboards. | In the web version of Uiua, we can type in the name of the function or a part of it and when run, the interpreter will format the name to Unicode Symbol, so that we don't need use of non-ASCII keyboards. | ||
All table below are base on the [[Uiua]] 0.8.0 Version. | |||
==== Stack ==== | ==== Stack ==== | ||
Work with the stack | Work with the stack | ||
Line 124: | Line 125: | ||
| <code>↧</code> || [[Minimum]]/[[Logical And]] || Take the minimum of two arrays (Can use for logical AND.) || min | | <code>↧</code> || [[Minimum]]/[[Logical And]] || Take the minimum of two arrays (Can use for logical AND.) || min | ||
|- | |- | ||
| <code>↥</code> || [[Maximum]]/[Logical Or]] || Take the maximum of two arrays (Can use for logical OR.) || max | | <code>↥</code> || [[Maximum]]/[[Logical Or]] || Take the maximum of two arrays (Can use for logical OR.) || max | ||
|- | |- | ||
| <code>∠</code> || [[Atangent]] || Take the arctangent of two numbers || atan | | <code>∠</code> || [[Atangent]] || Take the arctangent of two numbers || atan | ||
|- | |- | ||
| <code>ℂ</code> || [[Complex]] || Make a complex number.The first argument is the imaginary part, and the second argument is the real part || com | | <code>ℂ</code> || [[Complex]] || Make a complex number.The first argument is the imaginary part, and the second argument is the real part || com | ||
|} | |||
==== Monadic Array ==== | |||
Operate on a single array | |||
{| class="wikitable" style="margin:auto" | |||
|+ Table of Monadic Array in Uiua | |||
! Glyph !! Name !! Definition | |||
|- | |||
| <code>⧻</code> || [[Length]] || Get the number of rows in an array | |||
|- | |||
| <code>△</code> || [[Shape]] || Get the dimensions of an array | |||
|- | |||
| <code>⇡</code> || [[Range]] || Make an array of all natural numbers less than a number | |||
|- | |||
| <code>⊢</code> || [[First]] || Get the first row of an array | |||
|- | |||
| <code>⇌</code> || [[Reverse]] || Reverse the rows of an array | |||
|- | |||
| <code>♭</code> || [[Deshape]] || Make an array 1-dimensional | |||
|- | |||
| <code>¤</code> || [[Fix]] || Add a length-1 axis to an array | |||
|- | |||
| <code>⋯</code> || [[Bits]] || Encode an array as bits (LSB-first) | |||
|- | |||
| <code>⍉</code> || [[Transpose]] || Rotate the shape of an array | |||
|- | |||
| <code>⍏</code> || [[Rise]] || Get the indices into an array if it were sorted ascending | |||
|- | |||
| <code>⍖</code> || [[Fall]] || Get the indices into an array if it were sorted descending | |||
|- | |||
| <code>⊚</code> || [[Where]] || Get indices where array values are not equal to zero | |||
|- | |||
| <code>⊛</code> || [[Classify]] || Assign a unique index to each unique element in an array | |||
|- | |||
| <code>◴</code> || [[Deduplicate]] || Remove duplicate elements from an array | |||
|- | |||
| <code>◰</code> || [[Unique]] || Get a mask of first occurrences of items in an array | |||
|- | |||
| <code>□</code> || [[Box]] || Turn an array into a box. The box function is complicated, so you can look at [https://www.uiua.org/docs/box] for more information | |||
|- | |||
|} | |} | ||
edits