Every operator
All 258 operators Garo has, by family. Each row is one syllable: its flow (the vowel), its final (the last consonant), what it does, how it is written, and its types. The rows come from the interpreter's own tables at commit 22aef1f6c8, and each example was run when this page was built.
In the forms, x and y are the data, p is a parameter glued on the right, and F is a function glued on the left. See the lattice for what each part means.
ㄱ mapㄴ selectㄷ reduceㄹ scanㅁ shapeㅂ liftㅅ orderㅇ refㅈ combineㅊ groupㅌ generateㅎ local
ㄱ map
transform each unit.
| op | flow · final | does · form · types | example |
|---|---|---|---|
| 가 | ㅏ the last axis (each row)no final: takes a function | apply FF가 xF decides | {닫 x}가 [1, 2, 3] ⇒ 6 Try it |
| 각 | ㅏ the last axis (each row)ㄱ toward greater (max) | max(x, p): clamp below p각 p x[n≥1] α → [n] α !err, any α | 각 0 [[-1, 2], [3, -4]] ⇒ [[0, 2], [3, 0]] Try it |
| 간 | ㅏ the last axis (each row)ㄴ toward lesser (min) | min(x, p): clamp above p간 p x[n≥1] α → [n] α !err, any α | |
| 갇 | ㅏ the last axis (each row)ㄷ additive (sum) | x + p갇 p x[n≥1] α → [n] α !err, α : Int Float Date Duration | 갇 10 [[1, 2], [3, 4]] ⇒ [[11, 12], [13, 14]] Try it |
| 갈 | ㅏ the last axis (each row)ㄹ multiplicative (product) | x × p갈 p x[n≥1] α → [n] α !err, α : Int Float Duration | |
| 감 | ㅏ the last axis (each row)ㅁ cardinality (count, exactly N) | repeat each unit p times, on a new axis감 p x[n≥1] α → [n+1] α, any α | 감 2 [1, 2] ⇒ [[1, 2], [1, 2]] Try it |
| 갓 | ㅏ the last axis (each row)ㅅ flip | flip values: negate numbers, NOT Bools갓 x[n≥1] α → [n] α, α : Int Float Bool Duration | |
| 강 | ㅏ the last axis (each row)ㅇ balanced (mean, normalize) | normalize to mean 0, variance 1강 x[n≥1] α → [n] Float !err, α : Int Float | 강 [[1, 3], [2, 6]] ⇒ [[-1.0, 1.0], [-1.0, 1.0]] Try it |
| 갖 | ㅏ the last axis (each row)ㅈ index (positions) | positions 0, 1, 2…갖 x[n≥1] α → [n] Int, any α | 갖 [5, 6, 7] ⇒ [0, 1, 2] Try it |
| 갚 | ㅏ the last axis (each row)ㅍ absence-aware (the present items) | fill absent cells with p갚 p x[n≥1] α → [n] α, any α | 갚 0 (망 [0, 3] []) ⇒ [] Try it |
| 개 | ㅐ by key: the keys come firstno final: takes a function | F of each key and its group (dispatch)F개 x yF decides | {y}개 [1, 1] [2, 3] ⇒ [2, 3] Try it |
| 거 | ㅓ the first axis (each column)no final: takes a function | apply FF거 xF decides | 닫거 [[1, -2], [-3, 4]] ⇒ [-2, 2] Try it |
| 걱 | ㅓ the first axis (each column)ㄱ toward greater (max) | max(x, p): clamp below p걱 p x[n≥1] α → [n] α !err, any α | |
| 건 | ㅓ the first axis (each column)ㄴ toward lesser (min) | min(x, p): clamp above p건 p x[n≥1] α → [n] α !err, any α | 건 (`a) (Table {v: []}) ⇒ Table {v: []} Try it |
| 걷 | ㅓ the first axis (each column)ㄷ additive (sum) | x + p걷 p x[n≥1] α → [n] α !err, α : Int Float Date Duration | 걷 [10, 20] [[1, 2], [3, 4]] ⇒ [[11, 12], [23, 24]] Try it |
| 걸 | ㅓ the first axis (each column)ㄹ multiplicative (product) | x × p걸 p x[n≥1] α → [n] α !err, α : Int Float Duration | |
| 검 | ㅓ the first axis (each column)ㅁ cardinality (count, exactly N) | repeat each unit p times, on a new axis검 p x[n≥1] α → [n+1] α, any α | |
| 것 | ㅓ the first axis (each column)ㅅ flip | flip values: negate numbers, NOT Bools것 x[n≥1] α → [n] α, α : Int Float Bool Duration | 것 [[], []] ⇒ [[], []] Try it |
| 겅 | ㅓ the first axis (each column)ㅇ balanced (mean, normalize) | normalize to mean 0, variance 1겅 x[n≥1] α → [n] Float !err, α : Int Float | |
| 겆 | ㅓ the first axis (each column)ㅈ index (positions) | positions 0, 1, 2…겆 x[n≥1] α → [n] Int, any α | 겆 [[5, 6], [7, 8]] ⇒ [[0, 0], [1, 1]] Try it |
| 겊 | ㅓ the first axis (each column)ㅍ absence-aware (the present items) | fill absent cells with p겊 p x[n≥1] α → [n] α, any α | 겊 0 [[], []] ⇒ [[], []] Try it |
| 게 | ㅔ within each groupno final: takes a function | apply FF게 xF decides | {Record {total: 닫 x, n: 담 x}}게 [10, 20, 30][칮 [`a, `b, `a]] ⇒ Table {key: [`a, `b], total: [40, 20], n: [2, 1]} Try it |
| 고 | ㅗ every pair (outer)no final: takes a function | F of every pair from x and y (a table)F고 x yF decides; with +: [n] α, [m] α → [n+m] α, α : Int Duration; [n] α, [m] α → [n+m] α !err, α : Float | ×고 [1, 2] [3, 4] ⇒ [[3, 4], [6, 8]] Try it |
| 곡 | ㅗ every pair (outer)ㄱ toward greater (max) | max of every pair from x and y (a table)곡 x y[n] α, [m] α → [n+m] α, any α | |
| 곤 | ㅗ every pair (outer)ㄴ toward lesser (min) | min of every pair from x and y (a table)곤 x y[n] α, [m] α → [n+m] α, any α | |
| 곧 | ㅗ every pair (outer)ㄷ additive (sum) | x + y for every pair (the addition table)곧 x y[n] α, [m] α → [n+m] α, α : Int Duration; [n] α, [m] α → [n+m] α !err, α : Float | 닫.곧~ [1, 2] ⇒ 6 Try it |
| 골 | ㅗ every pair (outer)ㄹ multiplicative (product) | x × y for every pair (the times table)골 x y[n] α, [m] α → [n+m] α, α : Int; [n] α, [m] α → [n+m] α !err, α : Float | 골 [1, 2, 3] [1, 2, 3] ⇒ [[1, 2, 3], [2, 4, 6], [3, 6, 9]] Try it |
| 구 | ㅜ corresponding pairs (inner)no final: takes a function | F of corresponding items of x and yF구 x yF decides; with +: [n] α, [m] α → [max(n, m)] α !err, α : Int Float Duration | +구 5 [1, 2] ⇒ [6, 7] Try it |
| 국 | ㅜ corresponding pairs (inner)ㄱ toward greater (max) | max of corresponding items of x and y국 x y[n] α, [m] α → [max(n, m)] α !err, any α | 국 [1, 5] [3, 3] ⇒ [3, 5] Try it |
| 군 | ㅜ corresponding pairs (inner)ㄴ toward lesser (min) | min of corresponding items of x and y군 x y[n] α, [m] α → [max(n, m)] α !err, any α | |
| 굳 | ㅜ corresponding pairs (inner)ㄷ additive (sum) | x + y, item by item굳 x y[n] α, [m] α → [max(n, m)] α !err, α : Int Float Duration | 굳~ [1, 2] ⇒ [2, 4] Try it |
| 굴 | ㅜ corresponding pairs (inner)ㄹ multiplicative (product) | x × y, item by item굴 x y[n] α, [m] α → [max(n, m)] α !err, α : Int Float | |
| 그 | ㅡ the whole array, flattenedno final: takes a function | apply FF그 xF decides | {닫 x}그 [[1, 2], [3, 4]] ⇒ [3, 7] Try it |
| 극 | ㅡ the whole array, flattenedㄱ toward greater (max) | max(x, p): clamp below p극 p x[n] α → [max(n, rank p)] α !err, any α | |
| 근 | ㅡ the whole array, flattenedㄴ toward lesser (min) | min(x, p): clamp above p근 p x[n] α → [max(n, rank p)] α !err, any α | |
| 귿 | ㅡ the whole array, flattenedㄷ additive (sum) | x + p귿 p x[n] α → [max(n, rank p)] α !err, α : Int Float Date Duration | |
| 글 | ㅡ the whole array, flattenedㄹ multiplicative (product) | x × p글 p x[n] α → [max(n, rank p)] α !err, α : Int Float Duration | |
| 금 | ㅡ the whole array, flattenedㅁ cardinality (count, exactly N) | repeat each unit p times, on a new axis금 p x[n] α → [n+1] α, any α | 닫 (금 1 (먼 0 [0.0])) ⇒ [0.0] Try it |
| 긋 | ㅡ the whole array, flattenedㅅ flip | flip values: negate numbers, NOT Bools긋 x[n] α → [n] α, α : Int Float Bool Duration | |
| 긍 | ㅡ the whole array, flattenedㅇ balanced (mean, normalize) | normalize to mean 0, variance 1긍 x[n] α → [n] Float !err, α : Int Float | 긍 [1.0, `none] ⇒ [`none, `none] Try it |
| 긎 | ㅡ the whole array, flattenedㅈ index (positions) | positions 0, 1, 2…긎 x[n] α → [n] Int, any α | 긎 [[5, 6], [7, 8]] ⇒ [[0, 1], [2, 3]] Try it |
| 긒 | ㅡ the whole array, flattenedㅍ absence-aware (the present items) | fill absent cells with p긒 p x[n] α → [n] α, any α | |
| 기 | ㅣ each elementno final: takes a function | apply FF기 xF decides | ×~기 [1, 2, 3] ⇒ [1, 4, 9] Try it |
| 긱 | ㅣ each elementㄱ toward greater (max) | max(x, p): clamp below p긱 p x[n] α → [n+rank p] α, any α | 긱 0 5 ⇒ 5 Try it |
| 긴 | ㅣ each elementㄴ toward lesser (min) | min(x, p): clamp above p긴 p x[n] α → [n+rank p] α, any α | 긴 255 [100, 300] ⇒ [100, 255] Try it |
| 긷 | ㅣ each elementㄷ additive (sum) | x + p긷 p x[n] α → [n+rank p] α, α : Int Date Duration; [n] α → [n+rank p] α !err, α : Float | 긷 1 -2 ⇒ -1 Try it |
| 길 | ㅣ each elementㄹ multiplicative (product) | x × p길 p x[n] α → [n+rank p] α, α : Int Duration; [n] α → [n+rank p] α !err, α : Float | 길 0.5 [1, 2] ⇒ [0.5, 1.0] Try it |
| 김 | ㅣ each elementㅁ cardinality (count, exactly N) | repeat each unit p times, on a new axis김 p x[n] α → [n+1] α, any α | 김 3 [1, 2] ⇒ [[1, 1, 1], [2, 2, 2]] Try it |
| 깃 | ㅣ each elementㅅ flip | flip values: negate numbers, NOT Bools깃 x[n] α → [n] α, α : Int Float Bool Duration | 깃 [1, -2] ⇒ [-1, 2] Try it |
| 깊 | ㅣ each elementㅍ absence-aware (the present items) | fill absent cells with p깊 p x[n] α → [n] α, any α | 깊 2.5 [1, 2] ⇒ [1.0, 2.0] Try it |
ㄴ select
filter: keep some items.
| op | flow · final | does · form · types | example |
|---|---|---|---|
| 나 | ㅏ the last axis (each row)no final: takes a function | keep items where F is trueF나 x[2] α → [2] α, any α | 덤 ({(닫 x) > 100}나 [[1, 2], [3, 4]]) ⇒ [0, 0] Try it |
| 남 | ㅏ the last axis (each row)ㅁ cardinality (count, exactly N) | keep the first p items남 p x[2] α → [2] α, any α | 남 2 [[1, 2], [3, 4], [5, 6]] ⇒ [[1, 2], [3, 4]] Try it |
| 낲 | ㅏ the last axis (each row)ㅍ absence-aware (the present items) | keep the present items낲 x[2] α → [2] α, any α | 낲 [[1, `none], [3, 4]] ⇒ [[3, 4]] Try it |
| 내 | ㅐ by key: the keys come firstno final: takes a function | keep y's rows whose key in x passes FF내 x y[1] κ, [n≥1] α → [n] α !err, any α | |
| 냄 | ㅐ by key: the keys come firstㅁ cardinality (count, exactly N) | keep y's rows whose key in x is one of p냄 p x y[1] κ, [n≥1] α → [n] α !err, any α | 냄 5 [1, 2, 5] [10, 20, 30] ⇒ [30] Try it |
| 너 | ㅓ the first axis (each column)no final: takes a function | keep items where F is trueF너 x[2] α → [2] α, any α | {(닫 x) > 4}너 [[1, 2, 9], [3, 4, 0]] ⇒ [[2, 9], [4, 0]] Try it |
| 넘 | ㅓ the first axis (each column)ㅁ cardinality (count, exactly N) | keep the first p items넘 p x[2] α → [2] α, any α | 넘 1 [[1, 2], [3, 4]] ⇒ [[1], [3]] Try it |
| 넢 | ㅓ the first axis (each column)ㅍ absence-aware (the present items) | keep the present items넢 x[2] α → [2] α, any α | 넢 [[1, `none], [3, 4]] ⇒ [[1], [3]] Try it |
| 네 | ㅔ within each groupno final: takes a function | keep the groups for which F is trueF네 xGroups of [n≥1] α → Groups of [1] α, any α | |
| 니 | ㅣ each elementno final: takes a function | keep items where F is trueF니 x[1] α → [1] α, any α | {x > 1}니 [1, 2, 3] ⇒ [2, 3] Try it |
| 닉 | ㅣ each elementㄱ toward greater (max) | keep items > p닉 p x[1] α → [1] α, any α | 닉 2 [1, 2, 3] ⇒ [3] Try it |
| 닌 | ㅣ each elementㄴ toward lesser (min) | keep items < p닌 p x[1] α → [1] α, any α | 닌 0 [-1, 2, -3] ⇒ [-1, -3] Try it |
| 닏 | ㅣ each elementㄷ additive (sum) | keep leading items while the running sum stays below p닏 p x[1] α → [1] α, α : Int Text Duration; [1] α → [1] α !err, α : Float | 닏 6 [1, 2, 3, 4] ⇒ [1, 2] Try it |
| 닐 | ㅣ each elementㄹ multiplicative (product) | keep leading items while the running product stays below p닐 p x[1] α → [1] α, α : Int; [1] α → [1] α !err, α : Float | 닐 100 [2, 5, 20] ⇒ [2, 5] Try it |
| 님 | ㅣ each elementㅁ cardinality (count, exactly N) | keep the first p items님 p x[1] α → [1] α, any α | 님 5 [7, 8] ⇒ [7, 8] Try it |
| 닝 | ㅣ each elementㅇ balanced (mean, normalize) | keep items within p standard deviations of the mean닝 p x[1] α → [1] α !err, α : Int Float | 닝 1 [1, 2, 3] ⇒ [2] Try it |
| 닞 | ㅣ each elementㅈ index (positions) | positions of the true items닞 x[1] α → [1] Int, α : Bool | 닞 [false, true, true] ⇒ [1, 2] Try it |
| 닢 | ㅣ each elementㅍ absence-aware (the present items) | keep the present items닢 x[1] α → [1] α, any α | 닢 [1, `none, 3] ⇒ [1, 3] Try it |
ㄷ reduce
collapse a dimension: totals, counts, means.
| op | flow · final | does · form · types | example |
|---|---|---|---|
| 다 | ㅏ the last axis (each row)no final: takes a function | reduce by FF다 xF decides; with +: [n≥1] α → [n-1] α, α : Int Text Duration; [n≥1] α → [n-1] α !err, α : Float | -다 [5] ⇒ 5 Try it |
| 닥 | ㅏ the last axis (each row)ㄱ toward greater (max) | max닥 x[n≥1] α → [n-1] Absent α, any α | 닥 [-0.0] ⇒ -0.0 Try it |
| 단 | ㅏ the last axis (each row)ㄴ toward lesser (min) | min단 x[n≥1] α → [n-1] Absent α, any α | 단 [-0.0, 0.0] ⇒ -0.0 Try it |
| 닫 | ㅏ the last axis (each row)ㄷ additive (sum) | sum닫 x[n≥1] α → [n-1] α, α : Int Text Duration; [n≥1] α → [n-1] α !err, α : Float | 닫 튿 5 ⇒ 10 Try it |
| 달 | ㅏ the last axis (each row)ㄹ multiplicative (product) | product달 x[n≥1] α → [n-1] α, α : Int; [n≥1] α → [n-1] α !err, α : Float | 달 [2, 3, 4] ⇒ 24 Try it |
| 담 | ㅏ the last axis (each row)ㅁ cardinality (count, exactly N) | count담 x[n≥1] α → [n-1] Int, any α | 담 [5, 6, 7] ⇒ 3 Try it |
| 당 | ㅏ the last axis (each row)ㅇ balanced (mean, normalize) | mean당 x[n≥1] α → [n-1] Absent Float, α : Int; [n≥1] α → [n-1] Absent α !err, α : Float; [n≥1] α → [n-1] Absent α, α : Date Duration | 당 [1, 2, 3, 4] ⇒ 2.5 Try it |
| 대 | ㅐ by key: the keys come firstno final: takes a function | reduce by FF대 x yF decides; with +: [1] κ, [n≥1] α → Table !err, α : Int Float Text Duration | |
| 댁 | ㅐ by key: the keys come firstㄱ toward greater (max) | max댁 x y[1] κ, [n≥1] α → Table !err, any α | |
| 댄 | ㅐ by key: the keys come firstㄴ toward lesser (min) | min댄 x y[1] κ, [n≥1] α → Table !err, any α | |
| 댇 | ㅐ by key: the keys come firstㄷ additive (sum) | sum댇 x y[1] κ, [n≥1] α → Table !err, α : Int Float Text Duration | 댇 [1] [[1, 2]] ⇒ Table {key: [1], value: [3]} Try it |
| 댈 | ㅐ by key: the keys come firstㄹ multiplicative (product) | product댈 x y[1] κ, [n≥1] α → Table !err, α : Int Float | |
| 댐 | ㅐ by key: the keys come firstㅁ cardinality (count, exactly N) | count댐 x y[1] κ, [n≥1] α → Table !err, any α | |
| 댕 | ㅐ by key: the keys come firstㅇ balanced (mean, normalize) | mean댕 x y[1] κ, [n≥1] α → Table !err, α : Int Float Date Duration | 댕 (만 0 [`x]) (만 0 [1]) ⇒ Table {key: [], value: []} Try it |
| 더 | ㅓ the first axis (each column)no final: takes a function | reduce by FF더 xF decides; with +: [n≥1] α → [n-1] α, α : Int Text Duration; [n≥1] α → [n-1] α !err, α : Float | +더 [[1, 2], [3, 4]] ⇒ [4, 6] Try it |
| 덕 | ㅓ the first axis (each column)ㄱ toward greater (max) | max덕 x[n≥1] α → [n-1] Absent α, any α | 덕 [[1, 9], [8, 2]] ⇒ [8, 9] Try it |
| 던 | ㅓ the first axis (each column)ㄴ toward lesser (min) | min던 x[n≥1] α → [n-1] Absent α, any α | |
| 덛 | ㅓ the first axis (each column)ㄷ additive (sum) | sum덛 x[n≥1] α → [n-1] α, α : Int Text Duration; [n≥1] α → [n-1] α !err, α : Float | 덛 [1, 2, 3] ⇒ 6 Try it |
| 덜 | ㅓ the first axis (each column)ㄹ multiplicative (product) | product덜 x[n≥1] α → [n-1] α, α : Int; [n≥1] α → [n-1] α !err, α : Float | |
| 덤 | ㅓ the first axis (each column)ㅁ cardinality (count, exactly N) | count덤 x[n≥1] α → [n-1] Int, any α | 덤 [[1, 2, 3], [4, 5, 6]] ⇒ [2, 2, 2] Try it |
| 덩 | ㅓ the first axis (each column)ㅇ balanced (mean, normalize) | mean덩 x[n≥1] α → [n-1] Absent Float, α : Int; [n≥1] α → [n-1] Absent α !err, α : Float; [n≥1] α → [n-1] Absent α, α : Date Duration | 닫 (덩 [[], []]) ⇒ 0.0 Try it |
| 데 | ㅔ within each groupno final: takes a function | reduce by FF데 xF decides; with +: Groups of [n≥1] α → Table, α : Int Text Duration; Groups of [n≥1] α → Table !err, α : Float | |
| 덱 | ㅔ within each groupㄱ toward greater (max) | max덱 xGroups of [n≥1] α → Table, any α | |
| 덴 | ㅔ within each groupㄴ toward lesser (min) | min덴 xGroups of [n≥1] α → Table, any α | |
| 덷 | ㅔ within each groupㄷ additive (sum) | sum덷 xGroups of [n≥1] α → Table, α : Int Text Duration; Groups of [n≥1] α → Table !err, α : Float | |
| 델 | ㅔ within each groupㄹ multiplicative (product) | product델 xGroups of [n≥1] α → Table, α : Int; Groups of [n≥1] α → Table !err, α : Float | |
| 뎀 | ㅔ within each groupㅁ cardinality (count, exactly N) | count뎀 xGroups of [n≥1] α → Table, any α | |
| 뎅 | ㅔ within each groupㅇ balanced (mean, normalize) | mean뎅 xGroups of [n≥1] α → Table, α : Int Date Duration; Groups of [n≥1] α → Table !err, α : Float | |
| 둗 | ㅜ corresponding pairs (inner)ㄷ additive (sum) | inner product: the sum of x × y둗 x y[n≥1] α, [m≥1] α → [n+m-2] α !err, α : Int Float | 둗 [1, `none] [1, 1] ⇒ `none Try it |
| 드 | ㅡ the whole array, flattenedno final: takes a function | reduce by FF드 xF decides; with +: [n≥1] α → [0] α, α : Int Text Duration; [n≥1] α → [0] α !err, α : Float | |
| 득 | ㅡ the whole array, flattenedㄱ toward greater (max) | max득 x[n≥1] α → [0] Absent α, any α | |
| 든 | ㅡ the whole array, flattenedㄴ toward lesser (min) | min든 x[n≥1] α → [0] Absent α, any α | |
| 듣 | ㅡ the whole array, flattenedㄷ additive (sum) | sum듣 x[n≥1] α → [0] α, α : Int Text Duration; [n≥1] α → [0] α !err, α : Float | 듣 [1, 2, 3] ⇒ 6 Try it |
| 들 | ㅡ the whole array, flattenedㄹ multiplicative (product) | product들 x[n≥1] α → [0] α, α : Int; [n≥1] α → [0] α !err, α : Float | |
| 듬 | ㅡ the whole array, flattenedㅁ cardinality (count, exactly N) | count듬 x[n≥1] α → [0] Int, any α | 듬 [[1, 2, 3], [4, 5, 6]] ⇒ 6 Try it |
| 등 | ㅡ the whole array, flattenedㅇ balanced (mean, normalize) | mean등 x[n≥1] α → [0] Absent Float, α : Int; [n≥1] α → [0] Absent α !err, α : Float; [n≥1] α → [0] Absent α, α : Date Duration |
ㄹ scan
running (cumulative) aggregates.
| op | flow · final | does · form · types | example |
|---|---|---|---|
| 라 | ㅏ the last axis (each row)no final: takes a function | scan by FF라 xF decides; with +: [n≥1] α → [n] α, α : Int Text Duration; [n≥1] α → [n] α !err, α : Float | ÷라 [8, 2, 2] ⇒ [8.0, 4.0, 2.0] Try it |
| 락 | ㅏ the last axis (each row)ㄱ toward greater (max) | running max락 x[n≥1] α → [n] α, any α | 락 [3, 1, 4, 1, 5] ⇒ [3, 3, 4, 4, 5] Try it |
| 란 | ㅏ the last axis (each row)ㄴ toward lesser (min) | running min란 x[n≥1] α → [n] α, any α | 란 [3, 1, 4, 1, 5] ⇒ [3, 1, 1, 1, 1] Try it |
| 랃 | ㅏ the last axis (each row)ㄷ additive (sum) | running sum랃 x[n≥1] α → [n] α, α : Int Text Duration; [n≥1] α → [n] α !err, α : Float | 랃 [1, 2, 3, 4] ⇒ [1, 3, 6, 10] Try it |
| 랄 | ㅏ the last axis (each row)ㄹ multiplicative (product) | running product랄 x[n≥1] α → [n] α, α : Int; [n≥1] α → [n] α !err, α : Float | 랄 [1, 2, 3, 4] ⇒ [1, 2, 6, 24] Try it |
| 람 | ㅏ the last axis (each row)ㅁ cardinality (count, exactly N) | running count람 x[n≥1] α → [n] Int, any α | 람 [5, 6, 7] ⇒ [1, 2, 3] Try it |
| 랑 | ㅏ the last axis (each row)ㅇ balanced (mean, normalize) | running mean랑 x[n≥1] α → [n] Float, α : Int; [n≥1] α → [n] α !err, α : Float; [n≥1] α → [n] α, α : Date Duration | 랑 [1, 2, 3] ⇒ [1.0, 1.5, 2.0] Try it |
| 래 | ㅐ by key: the keys come firstno final: takes a function | scan by FF래 x yF decides; with +: [1] κ, [n≥1] α → [n] α !err, α : Int Float Text Duration | |
| 랙 | ㅐ by key: the keys come firstㄱ toward greater (max) | running max랙 x y[1] κ, [n≥1] α → [n] α !err, any α | |
| 랜 | ㅐ by key: the keys come firstㄴ toward lesser (min) | running min랜 x y[1] κ, [n≥1] α → [n] α !err, any α | |
| 랟 | ㅐ by key: the keys come firstㄷ additive (sum) | running sum랟 x y[1] κ, [n≥1] α → [n] α !err, α : Int Float Text Duration | |
| 랠 | ㅐ by key: the keys come firstㄹ multiplicative (product) | running product랠 x y[1] κ, [n≥1] α → [n] α !err, α : Int Float | |
| 램 | ㅐ by key: the keys come firstㅁ cardinality (count, exactly N) | running count램 x y[1] κ, [n≥1] α → [n] Int !err, any α | |
| 랭 | ㅐ by key: the keys come firstㅇ balanced (mean, normalize) | running mean랭 x y[1] κ, [n≥1] α → [n] Float !err, α : Int; [1] κ, [n≥1] α → [n] α !err, α : Float Date Duration | |
| 러 | ㅓ the first axis (each column)no final: takes a function | scan by FF러 xF decides; with +: [n≥1] α → [n] α, α : Int Text Duration; [n≥1] α → [n] α !err, α : Float | |
| 럭 | ㅓ the first axis (each column)ㄱ toward greater (max) | running max럭 x[n≥1] α → [n] α, any α | |
| 런 | ㅓ the first axis (each column)ㄴ toward lesser (min) | running min런 x[n≥1] α → [n] α, any α | |
| 럳 | ㅓ the first axis (each column)ㄷ additive (sum) | running sum럳 x[n≥1] α → [n] α, α : Int Text Duration; [n≥1] α → [n] α !err, α : Float | 럳 [[1, 2, 3], [4, 5, 6]] ⇒ [[1, 2, 3], [5, 7, 9]] Try it |
| 럴 | ㅓ the first axis (each column)ㄹ multiplicative (product) | running product럴 x[n≥1] α → [n] α, α : Int; [n≥1] α → [n] α !err, α : Float | |
| 럼 | ㅓ the first axis (each column)ㅁ cardinality (count, exactly N) | running count럼 x[n≥1] α → [n] Int, any α | |
| 렁 | ㅓ the first axis (each column)ㅇ balanced (mean, normalize) | running mean렁 x[n≥1] α → [n] Float, α : Int; [n≥1] α → [n] α !err, α : Float; [n≥1] α → [n] α, α : Date Duration | |
| 레 | ㅔ within each groupno final: takes a function | scan by FF레 xF decides; with +: Groups of [n≥1] α → [n] α, α : Int Text Duration; Groups of [n≥1] α → [n] α !err, α : Float | |
| 렉 | ㅔ within each groupㄱ toward greater (max) | running max렉 xGroups of [n≥1] α → [n] α, any α | |
| 렌 | ㅔ within each groupㄴ toward lesser (min) | running min렌 xGroups of [n≥1] α → [n] α, any α | |
| 렏 | ㅔ within each groupㄷ additive (sum) | running sum렏 xGroups of [n≥1] α → [n] α, α : Int Text Duration; Groups of [n≥1] α → [n] α !err, α : Float | |
| 렐 | ㅔ within each groupㄹ multiplicative (product) | running product렐 xGroups of [n≥1] α → [n] α, α : Int; Groups of [n≥1] α → [n] α !err, α : Float | |
| 렘 | ㅔ within each groupㅁ cardinality (count, exactly N) | running count렘 xGroups of [n≥1] α → [n] Int, any α | |
| 렝 | ㅔ within each groupㅇ balanced (mean, normalize) | running mean렝 xGroups of [n≥1] α → [n] Float, α : Int; Groups of [n≥1] α → [n] α !err, α : Float; Groups of [n≥1] α → [n] α, α : Date Duration | |
| 르 | ㅡ the whole array, flattenedno final: takes a function | scan by FF르 xF decides; with +: [n≥1] α → [n] α, α : Int Text Duration; [n≥1] α → [n] α !err, α : Float | |
| 륵 | ㅡ the whole array, flattenedㄱ toward greater (max) | running max륵 x[n≥1] α → [n] α, any α | |
| 른 | ㅡ the whole array, flattenedㄴ toward lesser (min) | running min른 x[n≥1] α → [n] α, any α | |
| 륻 | ㅡ the whole array, flattenedㄷ additive (sum) | running sum륻 x[n≥1] α → [n] α, α : Int Text Duration; [n≥1] α → [n] α !err, α : Float | 륻 [1, 2, 3] ⇒ [1, 3, 6] Try it |
| 를 | ㅡ the whole array, flattenedㄹ multiplicative (product) | running product를 x[n≥1] α → [n] α, α : Int; [n≥1] α → [n] α !err, α : Float | |
| 름 | ㅡ the whole array, flattenedㅁ cardinality (count, exactly N) | running count름 x[n≥1] α → [n] Int, any α | |
| 릉 | ㅡ the whole array, flattenedㅇ balanced (mean, normalize) | running mean릉 x[n≥1] α → [n] Float, α : Int; [n≥1] α → [n] α !err, α : Float; [n≥1] α → [n] α, α : Date Duration |
ㅁ shape
reshape: pad, trim, merge, split, tile, transpose.
| op | flow · final | does · form · types | example |
|---|---|---|---|
| 막 | ㅏ the last axis (each row)ㄱ toward greater (max) | pad the axis to length p with absent cells막 p x[n≥1] α → [n] Absent α !err, any α | 막 4 [1, 2] ⇒ [1, 2, `none, `none] Try it |
| 만 | ㅏ the last axis (each row)ㄴ toward lesser (min) | trim the axis to length p만 p x[n≥1] α → [n] α !err, any α | 만 2 [1, 2, 3] ⇒ [1, 2] Try it |
| 맏 | ㅏ the last axis (each row)ㄷ additive (sum) | merge axes (flatten)맏 x[n≥2] α → [n-1] α, any α | 맏 [[1, 2], [3, 4]] ⇒ [1, 2, 3, 4] Try it |
| 맘 | ㅏ the last axis (each row)ㅁ cardinality (count, exactly N) | tile p times맘 p x[n≥1] α → [n] α, any α | 맘 3 [1, 2] ⇒ [1, 2, 1, 2, 1, 2] Try it |
| 맛 | ㅏ the last axis (each row)ㅅ flip | transpose맛 x[n≥2] α → [n] α, any α | 맛 [[1, 2, 3], [4, 5, 6]] ⇒ [[1, 4], [2, 5], [3, 6]] Try it |
| 망 | ㅏ the last axis (each row)ㅇ balanced (mean, normalize) | split the axis into the shape p망 p x[n≥1] α → [n−1+#p] α !err, any α | 망 [1, 3] [1, 2, 3] ⇒ [[1, 2, 3]] Try it |
| 매 | ㅐ by key: the keys come firstno final: takes a function | pivot: long to wide by the names p, combining repeated pairs with FF매 p x✗ | |
| 맴 | ㅐ by key: the keys come firstㅁ cardinality (count, exactly N) | pivot: long to wide, by the three names p맴 p x✗ | 암 1 (맴 [`k, `flag, `v] (Table {k: [`a, `b], flag: [true, false], v: [1, 2]})) ⇒ [`none, 2] Try it |
| 맷 | ㅐ by key: the keys come firstㅅ flip | unpivot: wide to long, into the names p맷 p x[n] α → Table, any α | 맷 [`i, `j, `value] [[1, 2], [3, 4]] ⇒ Table {i: [0, 0, 1, 1], j: [0, 1, 0, 1], value: [1, 2, 3, 4]} Try it |
| 먹 | ㅓ the first axis (each column)ㄱ toward greater (max) | pad the axis to length p with absent cells먹 p x[n≥1] α → [n] Absent α !err, any α | 먹 3 [[1, 2]] ⇒ [[1, 2], [`none, `none], [`none, `none]] Try it |
| 먼 | ㅓ the first axis (each column)ㄴ toward lesser (min) | trim the axis to length p먼 p x[n≥1] α → [n] α !err, any α | 닫 (금 1 (먼 0 [0.0])) ⇒ [0.0] Try it |
| 먿 | ㅓ the first axis (each column)ㄷ additive (sum) | merge axes (flatten)먿 x[n≥2] α → [n-1] α, any α | 먿 [[[1, 2], [3, 4]]] ⇒ [[1, 2], [3, 4]] Try it |
| 멈 | ㅓ the first axis (each column)ㅁ cardinality (count, exactly N) | tile p times멈 p x[n≥1] α → [n] α, any α | 멈 2 [[1, 2], [3, 4]] ⇒ [[1, 2], [3, 4], [1, 2], [3, 4]] Try it |
| 멋 | ㅓ the first axis (each column)ㅅ flip | transpose멋 x[n≥2] α → [n] α, any α | |
| 멍 | ㅓ the first axis (each column)ㅇ balanced (mean, normalize) | split the axis into the shape p멍 p x[n≥1] α → [n−1+#p] α !err, any α | |
| 믁 | ㅡ the whole array, flattenedㄱ toward greater (max) | pad the axis to length p with absent cells믁 p x[n≥1] α → [1] Absent α !err, any α | |
| 믄 | ㅡ the whole array, flattenedㄴ toward lesser (min) | trim the axis to length p믄 p x[n≥1] α → [1] α !err, any α | 믄 3 [[1, 2], [3, 4]] ⇒ [1, 2, 3] Try it |
| 믇 | ㅡ the whole array, flattenedㄷ additive (sum) | merge axes (flatten)믇 x[n≥1] α → [1] α, any α | 믇 [[[1, 2]], [[3, 4]]] ⇒ [1, 2, 3, 4] Try it |
| 믐 | ㅡ the whole array, flattenedㅁ cardinality (count, exactly N) | tile p times믐 p x[n≥1] α → [1] α, any α | |
| 믓 | ㅡ the whole array, flattenedㅅ flip | transpose믓 x[n≥1] α → [n] α, any α | 믓 [1, 2] ⇒ [1, 2] Try it |
| 믕 | ㅡ the whole array, flattenedㅇ balanced (mean, normalize) | split the axis into the shape p믕 p x[n≥1] α → [#p] α !err, any α | 믕 [3] [[1, 2, 3]] ⇒ [1, 2, 3] Try it |
ㅂ lift
broadcast: align two shapes, then apply F.
| op | flow · final | does · form · types | example |
|---|---|---|---|
| 박 | ㅏ the last axis (each row)ㄱ toward greater (max) | extend to the larger shape (absent pads), then FF박 x yF decides; with +: [n] α, [m] α → [max(n, m)] Absent α, α : Int Duration; [n] α, [m] α → [max(n, m)] Absent α !err, α : Float | ⌈박 [[1, 9]] [5, 5] ⇒ [[5, 9]] Try it |
| 반 | ㅏ the last axis (each row)ㄴ toward lesser (min) | clip to the smaller shape, then FF반 x yF decides; with +: [n] α, [m] α → [max(n, m)] α, α : Int Duration; [n] α, [m] α → [max(n, m)] α !err, α : Float | +반 [1, 2, 3] [10, 20] ⇒ [11, 22] Try it |
| 받 | ㅏ the last axis (each row)ㄷ additive (sum) | tile to fill the larger shape, then FF받 x yF decides; with +: [n] α, [m] α → [max(n, m)] α !err, α : Int Float Duration | +받 [1, 2, 3, 4] [10, 20] ⇒ [11, 22, 13, 24] Try it |
| 밤 | ㅏ the last axis (each row)ㅁ cardinality (count, exactly N) | strict: the shapes must match, then FF밤 x yF decides; with +: [n] α, [m] α → [max(n, m)] α !err, α : Int Float Duration | +밤 [[1, 2], [3, 4]] [10, 20] ⇒ [[11, 22], [13, 24]] Try it |
| 방 | ㅏ the last axis (each row)ㅇ balanced (mean, normalize) | interpolate to match, then F (in Floats)F방 x yF decides; with +: [n] α, [m] α → [max(n, m)] Float !err, α : Int Float | +방 [1, 2] [3, 4] ⇒ [4.0, 6.0] Try it |
| 백 | ㅐ by key: the keys come firstㄱ toward greater (max) | merge keyed series: F on every key, absent for a side that lacks itF백 x y✗ | |
| 밴 | ㅐ by key: the keys come firstㄴ toward lesser (min) | merge keyed series: F on the keys both haveF밴 x y✗ | |
| 뱀 | ㅐ by key: the keys come firstㅁ cardinality (count, exactly N) | merge keyed series: the keys must match, then FF뱀 x y✗ | |
| 벅 | ㅓ the first axis (each column)ㄱ toward greater (max) | extend to the larger shape (absent pads), then FF벅 x yF decides; with +: [n] α, [m] α → [max(n, m)] Absent α, α : Int Duration; [n] α, [m] α → [max(n, m)] Absent α !err, α : Float | +벅 [[1, 2], [3, 4]] [10, 20] ⇒ [[11, 12], [23, 24]] Try it |
| 번 | ㅓ the first axis (each column)ㄴ toward lesser (min) | clip to the smaller shape, then FF번 x yF decides; with +: [n] α, [m] α → [max(n, m)] α, α : Int Duration; [n] α, [m] α → [max(n, m)] α !err, α : Float | |
| 벋 | ㅓ the first axis (each column)ㄷ additive (sum) | tile to fill the larger shape, then FF벋 x yF decides; with +: [n] α, [m] α → [max(n, m)] α !err, α : Int Float Duration | |
| 범 | ㅓ the first axis (each column)ㅁ cardinality (count, exactly N) | strict: the shapes must match, then FF범 x yF decides; with +: [n] α, [m] α → [max(n, m)] α !err, α : Int Float Duration | |
| 벙 | ㅓ the first axis (each column)ㅇ balanced (mean, normalize) | interpolate to match, then F (in Floats)F벙 x yF decides; with +: [n] α, [m] α → [max(n, m)] Float !err, α : Int Float |
ㅅ order
sort, reverse, grade.
| op | flow · final | does · form · types | example |
|---|---|---|---|
| 사 | ㅏ the last axis (each row)no final: takes a function | sort by the comparison FF사 xF decides; with <: [n≥1] α → [n] α, any α | <사 [2, 1] ⇒ [1, 2] Try it |
| 삭 | ㅏ the last axis (each row)ㄱ toward greater (max) | sort descending삭 x[n≥1] α → [n] α, any α | 삭 [3, 1, 2] ⇒ [3, 2, 1] Try it |
| 산 | ㅏ the last axis (each row)ㄴ toward lesser (min) | sort ascending산 x[n≥1] α → [n] α, any α | 산 [2, 1.5] ⇒ [1.5, 2.0] Try it |
| 삿 | ㅏ the last axis (each row)ㅅ flip | reverse삿 x[n≥1] α → [n] α, any α | 삿 [1, 2, 3] ⇒ [3, 2, 1] Try it |
| 샂 | ㅏ the last axis (each row)ㅈ index (positions) | ascending grade: the positions that would sort it샂 x[n≥1] α → [n] Int, any α | 샂 [30, 10, 20] ⇒ [1, 2, 0] Try it |
| 새 | ㅐ by key: the keys come firstno final: takes a function | sort y by its keys x, comparing with FF새 x yF decides; with <: [1] κ, [n≥1] α → [n] α !err, any α | {x > y}새 [1, 3] [`a, `b] ⇒ [`b, `a] Try it |
| 색 | ㅐ by key: the keys come firstㄱ toward greater (max) | sort y by its keys x, descending색 x y[1] κ, [n≥1] α → [n] α !err, any α | 색 [3, 1, 2] [`c, `a, `b] ⇒ [`c, `b, `a] Try it |
| 샌 | ㅐ by key: the keys come firstㄴ toward lesser (min) | sort y by its keys x, ascending샌 x y[1] κ, [n≥1] α → [n] α !err, any α | 샌 [3, 1, 2] [`c, `a, `b] ⇒ [`a, `b, `c] Try it |
| 서 | ㅓ the first axis (each column)no final: takes a function | sort by the comparison FF서 xF decides; with <: [n≥1] α → [n] α, any α | |
| 석 | ㅓ the first axis (each column)ㄱ toward greater (max) | sort descending석 x[n≥1] α → [n] α, any α | |
| 선 | ㅓ the first axis (each column)ㄴ toward lesser (min) | sort ascending선 x[n≥1] α → [n] α, any α | 선 [[3, 1], [2, 4]] ⇒ [[2, 1], [3, 4]] Try it |
| 섯 | ㅓ the first axis (each column)ㅅ flip | reverse섯 x[n≥1] α → [n] α, any α | 섯 [[1, 2], [3, 4]] ⇒ [[3, 4], [1, 2]] Try it |
| 섲 | ㅓ the first axis (each column)ㅈ index (positions) | ascending grade: the positions that would sort it섲 x[n≥1] α → [n] Int, any α | |
| 섹 | ㅔ within each groupㄱ toward greater (max) | sort descending섹 xGroups of [n≥1] α → [n] α, any α | |
| 센 | ㅔ within each groupㄴ toward lesser (min) | sort ascending센 xGroups of [n≥1] α → [n] α, any α | |
| 스 | ㅡ the whole array, flattenedno final: takes a function | sort by the comparison FF스 xF decides; with <: [n≥1] α → [n] α, any α | |
| 슥 | ㅡ the whole array, flattenedㄱ toward greater (max) | sort descending슥 x[n≥1] α → [n] α, any α | |
| 슨 | ㅡ the whole array, flattenedㄴ toward lesser (min) | sort ascending슨 x[n≥1] α → [n] α, any α | 슨 [[3, 1], [2, 4]] ⇒ [[1, 2], [3, 4]] Try it |
| 슷 | ㅡ the whole array, flattenedㅅ flip | reverse슷 x[n≥1] α → [n] α, any α | 슷 [[1, 2], [3, 4]] ⇒ [[4, 3], [2, 1]] Try it |
| 슺 | ㅡ the whole array, flattenedㅈ index (positions) | ascending grade: the positions that would sort it슺 x[n≥1] α → [n] Int, any α | |
| 싲 | ㅣ each elementㅈ index (positions) | bins: which bin of the edges p each item falls in싲 p x[n] α → [n] Int !err, any α | 싲 [10, 20] [5, 10, 15, 25] ⇒ [0, 1, 1, 2] Try it |
ㅇ ref
pick a position.
| op | flow · final | does · form · types | example |
|---|---|---|---|
| 암 | ㅏ the last axis (each row)ㅁ cardinality (count, exactly N) | pick position p암 p x[n≥1] α → [n−1+rank p] Absent α, any α | 암 1 [[1, 2], [3, 4]] ⇒ [2, 4] Try it |
| 앰 | ㅐ by key: the keys come firstㅁ cardinality (count, exactly N) | lookup: the item of y whose key in x is p앰 p x y[1] κ, [n≥1] α → [n−1+rank p] Absent α !err, any α | 앰 `b [`a, `b] [10, 20] ⇒ 20 Try it |
| 엄 | ㅓ the first axis (each column)ㅁ cardinality (count, exactly N) | pick position p엄 p x[n≥1] α → [n−1+rank p] Absent α, any α | 엄 5 [10, 20] ⇒ `none Try it |
| 엠 | ㅔ within each groupㅁ cardinality (count, exactly N) | pick position p within each group엠 p xGroups of [n≥1] α → Table, any α | 엠 0 ([10, 20, 30][칮 [`a, `b, `a]]) ⇒ Table {key: [`a, `b], value: [10, 20]} Try it |
| 음 | ㅡ the whole array, flattenedㅁ cardinality (count, exactly N) | pick position p음 p x[n≥1] α → [rank p] Absent α, any α | 음 3 [[1, 2], [3, 4]] ⇒ 4 Try it |
ㅈ combine
join, zip or concatenate two datasets.
| op | flow · final | does · form · types | example |
|---|---|---|---|
| 재 | ㅐ by key: the keys come firstno final: takes a function | join where F matchesF재 x y✗ | |
| 잭 | ㅐ by key: the keys come firstㄱ toward greater (max) | right join on the key p잭 p x y✗ | |
| 잰 | ㅐ by key: the keys come firstㄴ toward lesser (min) | left join on the key p잰 p x y✗ | |
| 잼 | ㅐ by key: the keys come firstㅁ cardinality (count, exactly N) | inner join on the key p잼 p x y✗ | 잼 `k (Table {k: [1.0], a: [1]}) (Table {k: [1], b: [2]}) ⇒ Table {k: [1.0], a: [1], b: [2]} Try it |
| 잿 | ㅐ by key: the keys come firstㅅ flip | anti-join: x's rows with no match on p잿 p x y✗ | |
| 쟁 | ㅐ by key: the keys come firstㅇ balanced (mean, normalize) | full outer join on the key p쟁 p x y✗ | |
| 쟂 | ㅐ by key: the keys come firstㅈ index (positions) | index-pair join on the key p: the matching row positions쟂 p x y✗ | |
| 좀 | ㅗ every pair (outer)ㅁ cardinality (count, exactly N) | cross join: every pair of rows좀 x y✗ | |
| 즌 | ㅡ the whole array, flattenedㄴ toward lesser (min) | the rows in both (intersection)즌 x y[n≥1] α, [n≥1] α → [n] α !err, any α | 즌 [1, 2] [2.0, 3.0] ⇒ [2.0] Try it |
| 즏 | ㅡ the whole array, flattenedㄷ additive (sum) | the rows in either, each once (union)즏 x y[n≥1] α, [n≥1] α → [n] α !err, any α | 즏 [0.0] [-0.0] ⇒ [0.0] Try it |
| 즘 | ㅡ the whole array, flattenedㅁ cardinality (count, exactly N) | concatenate rows, same columns (UNION ALL)즘 x y[n≥1] α, [n≥1] α → [n] α !err, any α | 즘 [1, 2] [3.5] ⇒ [1.0, 2.0, 3.5] Try it |
| 즛 | ㅡ the whole array, flattenedㅅ flip | x's rows not in y (except)즛 x y[n≥1] α, [n≥1] α → [n] α !err, any α | 즛 [3, 1, 2, 1] [1] ⇒ [3, 2] Try it |
| 증 | ㅡ the whole array, flattenedㅇ balanced (mean, normalize) | concatenate rows, the union of columns증 x y✗ | 증 (Table {a: [1]}) (Table {m: [[1, 2]]}) ⇒ Table {a: [1, `none], m: [[`none, `none], [1, 2]]} Try it |
| 직 | ㅣ each elementㄱ toward greater (max) | zip two tables by position, keep y's rows직 x y✗ | |
| 진 | ㅣ each elementㄴ toward lesser (min) | zip two tables by position, keep x's rows진 x y✗ | |
| 짐 | ㅣ each elementㅁ cardinality (count, exactly N) | zip two tables by position; row counts must match짐 x y✗ | |
| 징 | ㅣ each elementㅇ balanced (mean, normalize) | zip two tables by position, keep both sides' rows징 x y✗ |
ㅊ group
split into a partition.
| op | flow · final | does · form · types | example |
|---|---|---|---|
| 첟 | ㅓ the first axis (each column)ㄷ additive (sum) | sessionize: a new group when the running sum passes p첟 p x[1] α → Partition Int, α : Int; [1] α → Partition Int !err, α : Float | 첟 15 [10, 4, 3, 9, 1] ⇒ Partition {0: [0, 1], 1: [2, 3, 4]} Try it |
| 첨 | ㅓ the first axis (each column)ㅁ cardinality (count, exactly N) | p equal-count chunks, in order첨 p x[n≥1] α → Partition Int, any α | 첨 4 [5, 6] ⇒ Partition {0: [0], 1: [1], 2: [], 3: []} Try it |
| 첫 | ㅓ the first axis (each column)ㅅ flip | runs: cut where the value changes첫 x[1] α → Partition Int, any α | 첫 [`a, `a, `b, `a] ⇒ Partition {0: [0, 1], 1: [2], 2: [3]} Try it |
| 청 | ㅓ the first axis (each column)ㅇ balanced (mean, normalize) | p quantile bins청 p x[1] α → Partition Int, α : Int Float | 청 2 [40, 10, 30, 20] ⇒ Partition {0: [1, 3], 1: [0, 2]} Try it |
| 첮 | ㅓ the first axis (each column)ㅈ index (positions) | partition by the key p첮 p x[n≥1] α → Partition (p's type) !err, any α | |
| 칮 | ㅣ each elementㅈ index (positions) | partition by the values themselves칮 x[1] α → Partition α, any α | 칮 [3, 1, 3] ⇒ Partition {3: [0, 2], 1: [1]} Try it |
ㅌ generate
create arrays: ones, zeros, ranges.
| op | flow · final | does · form · types | example |
|---|---|---|---|
| 탇 | ㅏ the last axis (each row)ㄷ additive (sum) | the range 0, 1, 2… in the shape p탇 p[#p] Int, one axis per dimension p names | 탇 [2, 3] ⇒ [[0, 1, 2], [0, 1, 2]] Try it |
| 턷 | ㅓ the first axis (each column)ㄷ additive (sum) | the range 0, 1, 2… in the shape p턷 p[#p] Int, one axis per dimension p names | 턷 [2, 3] ⇒ [[0, 0, 0], [1, 1, 1]] Try it |
| 트 | ㅡ the whole array, flattenedno final: takes a function | items made by F, in the shape pF트 pF decides | {x × x}트 4 ⇒ [0, 1, 4, 9] Try it |
| 특 | ㅡ the whole array, flattenedㄱ toward greater (max) | ones, in the shape p특 p[#p] Int, one axis per dimension p names | 특 [2, 3] ⇒ [[1, 1, 1], [1, 1, 1]] Try it |
| 튼 | ㅡ the whole array, flattenedㄴ toward lesser (min) | zeros, in the shape p튼 p[#p] Int, one axis per dimension p names | 튼 3 ⇒ [0, 0, 0] Try it |
| 튿 | ㅡ the whole array, flattenedㄷ additive (sum) | the range 0, 1, 2… in the shape p튿 p[#p] Int, one axis per dimension p names | 튿 10 ⇒ [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] Try it |
| 틀 | ㅡ the whole array, flattenedㄹ multiplicative (product) | the geometric sequence 1, r, r², … from p = (r, n)틀 p[1] Int | 틀 [2, 10] ⇒ [1, 2, 4, 8, 16, 32, 64, 128, 256, 512] Try it |
| 틈 | ㅡ the whole array, flattenedㅁ cardinality (count, exactly N) | the p × p identity matrix틈 p[2] Int | 틈 3 ⇒ [[1, 0, 0], [0, 1, 0], [0, 0, 1]] Try it |
ㅎ local
aggregate over a sliding window.
| op | flow · final | does · form · types | example |
|---|---|---|---|
| 하 | ㅏ the last axis (each row)no final: takes a function | F of each window of pF하 p xF decides; with +: [n≥1] α → [n] Absent α, α : Int Text Duration; [n≥1] α → [n] Absent α !err, α : Float | {x - y}하 2 [10, 3, 1] ⇒ [`none, 7, 2] Try it |
| 학 | ㅏ the last axis (each row)ㄱ toward greater (max) | max of each window of p학 p x[n≥1] α → [n] Absent α, any α | 학 3 [1, 3, 2, 5, 4] ⇒ [`none, `none, 3, 5, 5] Try it |
| 한 | ㅏ the last axis (each row)ㄴ toward lesser (min) | min of each window of p한 p x[n≥1] α → [n] Absent α, any α | 한 2 [4, 1, 3] ⇒ [`none, 1, 1] Try it |
| 핟 | ㅏ the last axis (each row)ㄷ additive (sum) | sum of each window of p핟 p x[n≥1] α → [n] Absent α, α : Int Text Duration; [n≥1] α → [n] Absent α !err, α : Float | 핟 5 [1, 2] ⇒ [`none, `none] Try it |
| 할 | ㅏ the last axis (each row)ㄹ multiplicative (product) | product of each window of p할 p x[n≥1] α → [n] Absent α, α : Int; [n≥1] α → [n] Absent α !err, α : Float | 할 3 [1, 2] ⇒ [`none, `none] Try it |
| 함 | ㅏ the last axis (each row)ㅁ cardinality (count, exactly N) | count of each window of p함 p x[n≥1] α → [n] Absent Int, any α | 함 2 [7, 8, 9] ⇒ [`none, 2, 2] Try it |
| 항 | ㅏ the last axis (each row)ㅇ balanced (mean, normalize) | mean of each window of p항 p x[n≥1] α → [n] Absent Float, α : Int; [n≥1] α → [n] Absent α !err, α : Float; [n≥1] α → [n] Absent α, α : Date Duration | 항 2 [1.0, 3.0, 5.0] ⇒ [`none, 2.0, 4.0] Try it |
| 해 | ㅐ by key: the keys come firstno final: takes a function | F of each window of pF해 p x yF decides; with +: [1] κ, [n≥1] α → [n] Absent α !err, α : Int Float Text Duration | |
| 핵 | ㅐ by key: the keys come firstㄱ toward greater (max) | max of each window of p핵 p x y[1] κ, [n≥1] α → [n] Absent α !err, any α | |
| 핸 | ㅐ by key: the keys come firstㄴ toward lesser (min) | min of each window of p핸 p x y[1] κ, [n≥1] α → [n] Absent α !err, any α | |
| 핻 | ㅐ by key: the keys come firstㄷ additive (sum) | sum of each window of p핻 p x y[1] κ, [n≥1] α → [n] Absent α !err, α : Int Float Text Duration | |
| 핼 | ㅐ by key: the keys come firstㄹ multiplicative (product) | product of each window of p핼 p x y[1] κ, [n≥1] α → [n] Absent α !err, α : Int Float | |
| 햄 | ㅐ by key: the keys come firstㅁ cardinality (count, exactly N) | count of each window of p햄 p x y[1] κ, [n≥1] α → [n] Absent Int !err, any α | |
| 행 | ㅐ by key: the keys come firstㅇ balanced (mean, normalize) | mean of each window of p행 p x y[1] κ, [n≥1] α → [n] Absent Float !err, α : Int; [1] κ, [n≥1] α → [n] Absent α !err, α : Float Date Duration | |
| 허 | ㅓ the first axis (each column)no final: takes a function | F of each window of pF허 p xF decides; with +: [n≥1] α → [n] Absent α, α : Int Text Duration; [n≥1] α → [n] Absent α !err, α : Float | |
| 헉 | ㅓ the first axis (each column)ㄱ toward greater (max) | max of each window of p헉 p x[n≥1] α → [n] Absent α, any α | |
| 헌 | ㅓ the first axis (each column)ㄴ toward lesser (min) | min of each window of p헌 p x[n≥1] α → [n] Absent α, any α | |
| 헏 | ㅓ the first axis (each column)ㄷ additive (sum) | sum of each window of p헏 p x[n≥1] α → [n] Absent α, α : Int Text Duration; [n≥1] α → [n] Absent α !err, α : Float | 헏 2 [[1, 2, 3], [4, 5, 6]] ⇒ [[`none, `none, `none], [5, 7, 9]] Try it |
| 헐 | ㅓ the first axis (each column)ㄹ multiplicative (product) | product of each window of p헐 p x[n≥1] α → [n] Absent α, α : Int; [n≥1] α → [n] Absent α !err, α : Float | |
| 험 | ㅓ the first axis (each column)ㅁ cardinality (count, exactly N) | count of each window of p험 p x[n≥1] α → [n] Absent Int, any α | |
| 헝 | ㅓ the first axis (each column)ㅇ balanced (mean, normalize) | mean of each window of p헝 p x[n≥1] α → [n] Absent Float, α : Int; [n≥1] α → [n] Absent α !err, α : Float; [n≥1] α → [n] Absent α, α : Date Duration | |
| 헤 | ㅔ within each groupno final: takes a function | F of each window of pF헤 p xF decides; with +: Groups of [n≥1] α → [n] Absent α, α : Int Text Duration; Groups of [n≥1] α → [n] Absent α !err, α : Float | |
| 헥 | ㅔ within each groupㄱ toward greater (max) | max of each window of p헥 p xGroups of [n≥1] α → [n] Absent α, any α | |
| 헨 | ㅔ within each groupㄴ toward lesser (min) | min of each window of p헨 p xGroups of [n≥1] α → [n] Absent α, any α | |
| 헫 | ㅔ within each groupㄷ additive (sum) | sum of each window of p헫 p xGroups of [n≥1] α → [n] Absent α, α : Int Text Duration; Groups of [n≥1] α → [n] Absent α !err, α : Float | |
| 헬 | ㅔ within each groupㄹ multiplicative (product) | product of each window of p헬 p xGroups of [n≥1] α → [n] Absent α, α : Int; Groups of [n≥1] α → [n] Absent α !err, α : Float | |
| 헴 | ㅔ within each groupㅁ cardinality (count, exactly N) | count of each window of p헴 p xGroups of [n≥1] α → [n] Absent Int, any α | |
| 헹 | ㅔ within each groupㅇ balanced (mean, normalize) | mean of each window of p헹 p xGroups of [n≥1] α → [n] Absent Float, α : Int; Groups of [n≥1] α → [n] Absent α !err, α : Float; Groups of [n≥1] α → [n] Absent α, α : Date Duration |