naan/impls/
string.rs

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