Returns an optimized query variable solution extractor function based on given pattern type. vs, vp, vo are flags to indicate if s, p and/or o pattern items are query variables. The returned fn will be optimized to 1 of the 8 possible case and accepts a single fact to extract the respective variables from.
Returns an optimized query variable solution extractor function based on given pattern type.
vs
,vp
,vo
are flags to indicate ifs
,p
and/oro
pattern items are query variables. The returned fn will be optimized to 1 of the 8 possible case and accepts a single fact to extract the respective variables from.