This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Like a record baby!</title> | |
| <style> | |
| :root { | |
| --diagonal: calc(sqrt(2) * max(100vw, 100vh)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fn main() { | |
| let y = String::new(); | |
| let mut x = String::new(); | |
| let onceclosure = move |s: String| { | |
| let mut z = y; | |
| z.extend(s.chars()) | |
| }; | |
| let mut mutclosure = |s: String| x.extend(s.chars()); | |
| let mut normalclosure = |_| { | |
| //can't change the surrounding env |