:: Eq a => [a] -> [a] -> [a] -> [a] -package:graphviz package:polyparse

Parse a bracketed item, discarding the brackets. If everything matches except the closing bracket, the whole parse fails soft, which can give less-than-satisfying error messages. If you want better error messages, try calling with e.g. bracket open (commit close) item