; We don't need 'amb' in the code since pattern-matching of Egison automatically do backtracking. (match-all {{"the" "that" "a"} {"frog" "elephant" "thing"} {"walked" "treaded" "grows"} {"slowly" "quickly"}} (list (multiset string)) [ $w_1) _> (loop $i [2 $n] > $w_i) _> ...> )> (map (lambda [$i] w_i) (between 1 n))])