equal
deleted
inserted
replaced
407 then rem_thm_dups (nicer_shortest ctxt) raw_matches |
407 then rem_thm_dups (nicer_shortest ctxt) raw_matches |
408 else raw_matches; |
408 else raw_matches; |
409 |
409 |
410 val len = length matches; |
410 val len = length matches; |
411 val lim = the_default (! limit) opt_limit; |
411 val lim = the_default (! limit) opt_limit; |
412 in (SOME len, (uncurry drop) (len - lim, matches)) end; |
412 in (SOME len, drop (len - lim) matches) end; |
413 |
413 |
414 val find = |
414 val find = |
415 if rem_dups orelse is_none opt_limit |
415 if rem_dups orelse is_none opt_limit |
416 then find_all |
416 then find_all |
417 else pair NONE o Seq.list_of o Seq.take (the opt_limit) o lazy_filter filters; |
417 else pair NONE o Seq.list_of o Seq.take (the opt_limit) o lazy_filter filters; |