pub fn set2yaml(set: &BTreeMap<String, IntSpan>) -> BTreeMap<String, Value>
Expand description
use serde_yaml::Value;
use std::collections::BTreeMap;
use intspan::IntSpan;
let mut intspan = IntSpan::new();
intspan.add_pair(28547, 29194);
let mut set_of: BTreeMap<String, IntSpan> = BTreeMap::new();
set_of.insert("I".to_string(), intspan);

let runlist_of = intspan::set2yaml(&set_of);
assert_eq!(
    runlist_of.values().next().unwrap(),
    &Value::String("28547-29194".into())
);