src/Pure/Tools/find_theorems.ML
changeset 33957 e9afca2118d4
parent 33955 fff6f11b1f09
child 34088 d6194ece49df
equal deleted inserted replaced
33956:6f549f5e7066 33957:e9afca2118d4
   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;