src/HOL/Mutabelle/mutabelle.ML
changeset 42429 7691cc61720a
parent 42361 23f352990944
child 43883 aacbe67793c3
equal deleted inserted replaced
42428:a2a9018843ae 42429:7691cc61720a
    74 fun consts_of thy =
    74 fun consts_of thy =
    75  let
    75  let
    76    val (namespace, const_table) = #constants (Consts.dest (Sign.consts_of thy))
    76    val (namespace, const_table) = #constants (Consts.dest (Sign.consts_of thy))
    77    val consts = Symtab.dest const_table
    77    val consts = Symtab.dest const_table
    78  in
    78  in
    79    List.mapPartial (fn (s, (T, NONE)) => SOME (s, T) | _ => NONE)
    79    map_filter (fn (s, (T, NONE)) => SOME (s, T) | _ => NONE)
    80      (filter_out (fn (s, _) => Name_Space.is_concealed namespace s) consts)
    80      (filter_out (fn (s, _) => Name_Space.is_concealed namespace s) consts)
    81  end;
    81  end;
    82 
    82 
    83 
    83 
    84 (*possibility to print a given term for debugging purposes*)
    84 (*possibility to print a given term for debugging purposes*)