Skip to content

Ability to customize where the output of the command shall locate #540

@JustSimplyKyle

Description

@JustSimplyKyle
<!-- column_layout: [1,1] -->

<!-- column: 0 -->
rust +exec
fn print_odds(upper_bound: i32) -> i32 {
  for x in 1..upper_bound {
    if x % 2 == 1 {
      println!("{} is odd!", x);
    } else {
      println!("{} is even!", x);
    }
  }
  return 20;
}

# fn main() {
let x = "rust";
println!("hello {}", x);
println!("ans {}", print_odds(5));
# }

<!-- column: 1 -->
<!-- place_output -->

I propose a place_output command that can alter where the output shall be located.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions