extract(from:)

Attempts to extract a value from a root.

AnyCasePath.swift:51
func extract(from root: Root) -> Value?

Parameters

root

A root to extract from.

Returns

A value if it can be extracted from the given root, otherwise nil.