Snippet content copied to clipboard.
Are you sure to delete this snippet? No, don't delete
  1. use rustllm::yolo;
  2. #[yolo(oblicz tutaj silnię)]
  3. fn factorial(x: i32) -> i32;
  4. #[yolo(niech ta funkcja zwraca stringa z literkami w odwróconej kolejności)]
  5. fn rev(s: &str) -> String;
  6. fn main() {
  7. println!("{}", factorial(6));
  8. println!("{}", rev("abcdefgh"));
  9. }
  10. ----------------
  11. naur@khimaera $ cargo run
  12. Blocking waiting for file lock on build directory
  13. Compiling rustllm v0.1.0 (/home/naur/dev/rustllm)
  14. Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.15s
  15. Running `target/debug/rustllm`
  16. 720
  17. hgfedcba

Edit this Snippet