ffirst returns the first element of the first nested sequence. It accepts a sequential input or nil and returns one value, or nil when no value is available. section 10.1
Use ffirst when nested data makes first (first coll) more verbose:
- On nil or an empty collection, ffirst returns nil; malformed non-nested input can raise IllegalArgumentException. section 10.1
Processing nested records
For message data such as [["A" 1 28] ["H" 37 82 11]], (ffirst xs) extracts the current record's item, while (fnext xs) supplies the successor record. A lazy process can emit {:item "A", :succ ["H" 37 82 11]}.
