Path: blob/main/docs/source/src/rust/user-guide/expressions/lists.rs
7889 views
fn main() -> Result<(), Box<dyn std::error::Error>> {1// --8<-- [start:list-example]2// Contribute the Rust translation of the Python example by opening a PR.3// --8<-- [end:list-example]45// --8<-- [start:array-example]6// Contribute the Rust translation of the Python example by opening a PR.7// --8<-- [end:array-example]89// --8<-- [start:numpy-array-inference]10// Contribute the Rust translation of the Python example by opening a PR.11// --8<-- [end:numpy-array-inference]1213// --8<-- [start:weather]14// Contribute the Rust translation of the Python example by opening a PR.15// --8<-- [end:weather]1617// --8<-- [start:split]18// Contribute the Rust translation of the Python example by opening a PR.19// --8<-- [end:split]2021// --8<-- [start:explode]22// Contribute the Rust translation of the Python example by opening a PR.23// --8<-- [end:explode]2425// --8<-- [start:list-slicing]26// Contribute the Rust translation of the Python example by opening a PR.27// --8<-- [end:list-slicing]2829// --8<-- [start:element-wise-casting]30// Contribute the Rust translation of the Python example by opening a PR.31// --8<-- [end:element-wise-casting]3233// --8<-- [start:element-wise-regex]34// Contribute the Rust translation of the Python example by opening a PR.35// --8<-- [end:element-wise-regex]3637// --8<-- [start:children]38// Contribute the Rust translation of the Python example by opening a PR.39// --8<-- [end:children]4041// --8<-- [start:list-sorting]42// Contribute the Rust translation of the Python example by opening a PR.43// --8<-- [end:list-sorting]4445// --8<-- [start:list-aggregation]46// Contribute the Rust translation of the Python example by opening a PR.47// --8<-- [end:list-aggregation]4849// --8<-- [start:list-entropy]50// Contribute the Rust translation of the Python example by opening a PR.51// --8<-- [end:list-entropy]5253// --8<-- [start:weather_by_day]54// Contribute the Rust translation of the Python example by opening a PR.55// --8<-- [end:weather_by_day]5657// --8<-- [start:rank_pct]58// Contribute the Rust translation of the Python example by opening a PR.59// --8<-- [end:rank_pct]6061// --8<-- [start:array-overview]62// Contribute the Rust translation of the Python example by opening a PR.63// --8<-- [end:array-overview]6465Ok(())66}676869