 ///   - yaml: String
 ///   - resolver: Resolver
 ///   - constructor: Constructor
-/// - Returns: YamlSequence<Node>
+/// - returns: YamlSequence<Node>
 /// - Throws: YamlError
 public func compose_all(yaml: String,
                         _ resolver: Resolver = .default,

    return try Parser(yaml: yaml, resolver: resolver, constructor: constructor).singleRoot()
}

/// Sequence that holds error
public struct YamlSequence<T>: Sequence, IteratorProtocol {
    public private(set) var error: Swift.Error?

    public mutating func next() -> T? {
        do {
            return try closure()

///   - yaml: String
///   - resolver: Resolver
///   - constructor: Constructor
/// - returns: Node?
/// - Throws: YamlError
public func compose(yaml: String,
                    _ resolver: Resolver = .default,
