bai'i'i: Difference between revisions
(Import words via API) |
(Import words via API) |
||
| Line 1: | Line 1: | ||
==== valsi ==== | |||
bai'i'i | |||
==== type ==== | |||
experimental cmavo | |||
==== creator ==== | |||
[[personal/krtisfranks|krtisfranks]] | |||
==== time entered ==== | |||
Fri Dec 4 06:30:00 2020 | |||
== English == | |||
=== Definition #72301 - Preferred === | |||
==== selma'o ==== | |||
VUhU | |||
==== definition ==== | |||
mekso operator: in ordered tuple/list/vector/sequence <span class="MATH"><i>X</i><sub>1</sub></span>, replace the <span class="MATH"><i>X</i><sub>2</sub></span>th entry with term <span class="MATH"><i>X</i><sub>3</sub></span> of appropriate type, and leave all other entries untouched (optional: where the index for the very first/leading/header entry is <span class="MATH"><i>X</i><sub>4</sub></span>). | |||
==== notes ==== | |||
< | <span class="MATH"><i>X</i><sub>1</sub></span> must be some ordered and indexed structure; <span class="MATH"><i>X</i><sub>2</sub></span> must be an index which specifies an entry/element/term which actually appears in <span class="MATH"><i>X</i><sub>1</sub></span>; <span class="MATH"><i>X</i><sub>3</sub></span> is an alternative value of appropriate type which can, and after this operation does, replace the <span class="MATH"><i>X</i><sub>2</sub></span>th entry/element/term; the counting for indices is according to explicitly specified or implicit cultural convention, or the natural convention for the circumstance, or (when ambiguous or unclear) starts with 1, unless <span class="MATH"><i>X</i><sub>4</sub></span> specifies otherwise (in which case, it is according to that specification). Exactly the <span class="MATH"><i>X</i><sub>2</sub></span>th entry is reppaced, and it is replaced with exactly <span class="MATH"><i>X</i><sub>3</sub></span>. For example: in (A, B, C), A is the <span class="MATH"><i>X</i><sub>4</sub></span>th entry (default: 1st); bai'i'i((A, B, C), 2, b, 1) = (A, b, C). <span class="MATH"><i>X</i><sub>2</sub></span> itself could be replaced with a(n ordered) set of index values, in which case <span class="MATH"><i>X</i><sub>3</sub></span> must be an ordered list of replacement values such that they have the same cardinality; in this situation, the <span class="MATH"><i>n</i></span>th index in the index set (according to its ordering) corresponds to an entry in <span class="MATH"><i>X</i><sub>1</sub></span> which gets replaced (respectively) by the <span class="MATH"><i>n</i></span>th entry in <span class="MATH"><i>X</i><sub>3</sub></span>, where the entries in <span class="MATH"><i>X</i><sub>3</sub></span> are themselves counted/indexed/ordered in the usual manner and with the first/leading/header entry being 1st unless somehow explicitly specified otherwise; the index set is automatically ordered according to the same ordering as on <span class="MATH"><i>X</i><sub>3</sub></span> unless explicitly specified otherwise. Example: bai'i'i((A, B, C, D, E, F, G), Set(5, 2), (b, e), 1) = (A, b, C, D, e, F, G), where the ordering on <span class="MATH"><i>X</i><sub>2</sub></span> and <span class="MATH"><i>X</i><sub>3</sub></span> is the standard ordering starting with 1; note that Set(5, 2) is unordered and that the standard ordering rearranges it as (2, 5) with 2 being the 1st entry/element, meaning that the index 2 (corresponding with B in <span class="MATH"><i>X</i><sub>1</sub></span>) gets linked with the first entry of <span class="MATH"><i>X</i><sub>3</sub></span>, which is b, meaning that B gets replaced by b in <span class="MATH"><i>X</i><sub>1</sub></span>. | ||
< | |||
< | |||
</ | |||
==== gloss words ==== | |||
< | <ul><li>[[natlang/en/find-and-replace|find-and-replace ; for ordered tuples by index]]</li></ul> | ||
==== created by ==== | |||
[[personal/krtisfranks|krtisfranks]] | |||
==== vote information ==== | |||
1 | |||
==== time ==== | |||
Fri Dec 4 06:30:00 2020 | |||
[[comments.html?valsi=33633;definition=72301|[View | |||
Comments For This Definition]]] | |||
<br/><font size="+1">Examples</font> | |||
<hr/> | |||
<dl> | |||
</dl> | |||
=== Etymology === | |||
Latest revision as of 13:58, 13 January 2026
valsi
bai'i'i
type
experimental cmavo
creator
time entered
Fri Dec 4 06:30:00 2020
English
Definition #72301 - Preferred
selma'o
VUhU
definition
mekso operator: in ordered tuple/list/vector/sequence X1, replace the X2th entry with term X3 of appropriate type, and leave all other entries untouched (optional: where the index for the very first/leading/header entry is X4).
notes
X1 must be some ordered and indexed structure; X2 must be an index which specifies an entry/element/term which actually appears in X1; X3 is an alternative value of appropriate type which can, and after this operation does, replace the X2th entry/element/term; the counting for indices is according to explicitly specified or implicit cultural convention, or the natural convention for the circumstance, or (when ambiguous or unclear) starts with 1, unless X4 specifies otherwise (in which case, it is according to that specification). Exactly the X2th entry is reppaced, and it is replaced with exactly X3. For example: in (A, B, C), A is the X4th entry (default: 1st); bai'i'i((A, B, C), 2, b, 1) = (A, b, C). X2 itself could be replaced with a(n ordered) set of index values, in which case X3 must be an ordered list of replacement values such that they have the same cardinality; in this situation, the nth index in the index set (according to its ordering) corresponds to an entry in X1 which gets replaced (respectively) by the nth entry in X3, where the entries in X3 are themselves counted/indexed/ordered in the usual manner and with the first/leading/header entry being 1st unless somehow explicitly specified otherwise; the index set is automatically ordered according to the same ordering as on X3 unless explicitly specified otherwise. Example: bai'i'i((A, B, C, D, E, F, G), Set(5, 2), (b, e), 1) = (A, b, C, D, e, F, G), where the ordering on X2 and X3 is the standard ordering starting with 1; note that Set(5, 2) is unordered and that the standard ordering rearranges it as (2, 5) with 2 being the 1st entry/element, meaning that the index 2 (corresponding with B in X1) gets linked with the first entry of X3, which is b, meaning that B gets replaced by b in X1.
gloss words
created by
vote information
1
time
Fri Dec 4 06:30:00 2020
[View Comments For This Definition]
Examples