🚀Question 205:
What does this print?🦀
fn main() {
let arr = [10, 20, 30];
let mut iter = arr.iter().rev();
println!("{:?}", iter.next());
println!("{:?}", iter.next());
}
🚀 Question 203:
What is the output? 🦀
fn main() {
let s1 = String::from("hi");
let s2 = String::from("rust");
let r: &str;
{
r = if s1.len() > s2.len() { &s1 } else { &s2 };
}
println!("{}", r);
}
🚀 Question 201:
What does this program print? 🦀
fn main() {
let mut s = String::from("rust");
{
let r = &mut s;
r.push_str("ace");
}
println!("{}", s);
}
🚀 Question 200:
What will this print? 🦀
```rust
fn main() {
let v = vec![1, 2, 3];
let iter = v.iter();
drop(v);
for x in iter {
println!("{}", x);
}
}
```
🚀 Question 199:
In Rust, what happens when your landlord sells the house? Do you still get to be the tenant? 🦀
```rust
fn main() {
let s1 = String::from("hi");
let s2 = &s1;
let s3 = s1;
println!("{}", s2);
}
```
🚀Question 198:
What is the output?🦀
fn main() {
let data = vec!["a", "bb", "ccc"];
let max = data.iter()
.max_by_key ( |s| s.len () )
.unwrap ();
println!("{}", max);
}
0 Followers 16 Following👷🏾♂️Solutions Architect •👨🏾💻Backend Engineer • Also a multi-disciplinary with insatiable lust for enterprise-grade problem solutions.
10K Followers 11K Following🌊💧 Sui, SuiNS moderator | Walrus moderator | Mitosis moderator | Hyperlane moderator | Linera ambassador |
Professional POS Validator services
228 Followers 2K FollowingMoney is just a way to keep score. The best people in any field are motivated by passion. That becomes more true the higher the skill level gets. Eric Raymond
161 Followers 310 FollowingPersonal View | I follow here Python, R, Rust 🦀 and Svelte (2021-) that i use in my work: https://t.co/eYvExZIpiV. Read Post and Replies | Anti-Psychopath
1.1M Followers 631 FollowingLayer 1 blockchain designed to make digital asset ownership fast, private, secure, and accessible to everyone. Twitter by @SuiFoundation. RT ≠ endorsement.
10K Followers 11K Following🌊💧 Sui, SuiNS moderator | Walrus moderator | Mitosis moderator | Hyperlane moderator | Linera ambassador |
Professional POS Validator services
440K Followers 900 FollowingI talk about web and social • DevRel @APILayer • Building https://t.co/niju9j3mKu & https://t.co/TxBXHrPcNW • Prev @Rapid_API @HyperspaceAI
950K Followers 158 FollowingWe're a community of millions of people who are building new skills and getting new jobs together. A 501(c)(3) public charity. Tweets by @abbeyrenn.
144K Followers 901 FollowingSolana's Leading NFT Marketplace: https://t.co/ozR7bnTiuS
Creators of the first 10k cNFT Collection: https://t.co/xiX2e2hVHl 👾
21K Followers 4 FollowingTeaching the next generation of web3 developers.
150+ hours of Smart Contract Development and Security Courses, completely for Free.
Powered by @cyfrinaudits
4K Followers 104 FollowingIndustry leading developer training from Solana Core contributors. Join the Discord and enroll in our free, flexible delivery courses at 👉 https://t.co/dUrBLPL9NC
13K Followers 278 FollowingOpinionated Texan SWE who aims to build and share great software with the world • Building @webtui & learning Rust • I like guns, TUIs, airsoft, and jiujitsu
30K Followers 93 FollowingBuilding, coming to a city near you ☀️ Covering @Solana APEX and Community Events around the globe 🌎 Account run by the @SolanaFndn.
167K Followers 57 FollowingSolana Foundation is a non-profit organization dedicated to the decentralization, growth, and security of the Solana network. https://t.co/yNxCZqnJqi
5K Followers 502 FollowingSolana Summit APAC: Solana's Biggest Founders & Developers Summit by and for the ecosystem | Solana Summit 'Special Editions': 1 day community run major events