You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example code in the README seems to be missing .clone() invocations. Here's the code we think would be correct:
use kyte::{Compose,Delta,Transform};fnmain(){let before = Delta::new().insert("Hello World".to_owned(),());let alice = Delta::new().retain(5,()).insert(",".to_owned(),());let bob = Delta::new().retain(11,()).insert("!".to_owned(),());let composed_1 = before.clone().compose(alice.clone()).compose(dbg!(alice.clone().transform(bob.clone(),true)));let composed_2 = before.clone().compose(bob.clone()).compose(dbg!(bob.clone().transform(alice.clone(),false)));assert_eq!(composed_1, composed_2);println!("{:?}", composed_1);}
The text was updated successfully, but these errors were encountered:
The example code in the README seems to be missing .clone() invocations. Here's the code we think would be correct:
The text was updated successfully, but these errors were encountered: