1 2 3 4 5 6 7 8 9 10 11
use std_alloc::format; use std_alloc::string::String; use crate::prelude::*; impl Semigroup for String { fn append(self, b: Self) -> Self { format!("{self}{b}") } } deriving!(impl Monoid for String {..Default});