Skip to content

Commit

Permalink
add some notes to but and with docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Jun 21, 2024
1 parent f532e39 commit bda67d1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/primitive/defs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1768,6 +1768,11 @@ primitive!(
/// ex: # Experimental!
/// : [⤙⊙⊙⊙∘ 1 2 3 4]
/// : [⤙⊙⊙⊙◌ 1 2 3 4]
/// [but] always takes at least 2 arguments, even if its function takes fewer.
/// ex! # Experimental!
/// : [⤙¯ 2]
/// ex: # Experimental!
/// : [⤙¯ 2 5]
([1], But, Stack, ("but", '⤙')),
/// Call a function but keep its first argument under the outputs on the stack
///
Expand All @@ -1778,6 +1783,11 @@ primitive!(
/// ex: # Experimental!
/// : [⤚⊙⊙⊙∘ 1 2 3 4]
/// : [⤚⋅⊙⊙∘ 1 2 3 4]
/// [with] always takes at least 2 arguments, even if its function takes fewer.
/// ex! # Experimental!
/// : [⤚¯ 2]
/// ex: # Experimental!
/// : [⤚¯ 2 5]
([1], With, Stack, ("with", '⤚')),
/// Duplicate a function's last argument before calling it
///
Expand Down

0 comments on commit bda67d1

Please sign in to comment.