Skip to content

Commit

Permalink
clarify names for other adicities in tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Jan 18, 2025
1 parent fcddbf8 commit a6b5126
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion site/src/other.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ pub fn Combinators() -> impl IntoView {
let note = ["N", "ν", "X", "χ", "R", "ρ"].contains(&symbol).then(|| {
view! {
<sup>" "<span
style="text-decoration: underline dotted; font-size: 0.8em; cursor: help;"
class="help-note"
title="N, ν, X, χ, R, and ρ are not standard named combinators. They are included here because Uiua can express them easily.">
"*"
</span></sup>
Expand Down
3 changes: 2 additions & 1 deletion site/src/tutorial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,8 @@ fn TutorialMath() -> impl IntoView {
<p>"Some programming languages use the terms \"unary\" and \"binary\" to refer to functions that take one or two arguments respectively. While these are the Latin terms, many array languages, including Uiua, prefer to use the Greek terms \"monadic\" and \"dyadic\"."</p>
<p>"As you read Uiua's documentation, you will see these terms used to describe functions (and modifiers)."</p>
<p>"For example, "<Prim prim=Sqrt/>" is a monadic function, and "<Prim prim=Add/>" is a dyadic function."</p>
<p>"On this site, monadic functions are in "<span class="monadic-function">"green"</span>" and dyadic functions are in "<span class="dyadic-function">"blue"</span>"."</p>
<p>"On this site, "<span class="monadic-function">"monadic"</span>" functions are in "<span class="monadic-function">"green"</span>" and "<span class="dyadic-function">"dyadic"</span>" functions are in "<span class="dyadic-function">"blue"</span>"."</p>
<p>"Some documentation may also reference functions which are "<span class="noadic-function">"noadic"</span>", "<span class="triadic-function">"triadic"</span>", or "<span class="tetradic-function">"tetradic"</span>". These are the words for functions that take 0, 3, or 4 arguments respectively. The word "<span class="noadic-function">"noadic"</span>" is not common outside of Uiua, but it is chosen because such a function takes "<em>"no"</em>" arguments."</p>

<Hd id="challenges">"Challenges"</Hd>

Expand Down
6 changes: 6 additions & 0 deletions site/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1546,3 +1546,9 @@ a.clean {
opacity: 1;
}
}

.help-note {
text-decoration: underline dotted;
font-size: 0.8em;
cursor: help;
}

0 comments on commit a6b5126

Please sign in to comment.