@@ -77,7 +77,8 @@ impl Environment {
7777 let concat_fn = rust_core:: ConcatFn { } ;
7878 let print_string_fn = rust_core:: PrintStringFn { } ;
7979 let assoc_fn = rust_core:: AssocFn { } ;
80- let get_fn = rust_core:: GetFn { } ;
80+ let get_fn = rust_core:: GetFn { } ;
81+ let map_fn = rust_core:: MapFn { } ;
8182
8283 // Hardcoded fns
8384 let lexical_eval_fn = Value :: LexicalEvalFn { } ;
@@ -87,10 +88,10 @@ impl Environment {
8788 let def_macro = Value :: DefMacro { } ;
8889 let fn_macro = Value :: FnMacro { } ;
8990 let defmacro_macro = Value :: DefmacroMacro { } ;
90- let if_macro = Value :: IfMacro { } ;
91+ let if_macro = Value :: IfMacro { } ;
9192 let environment = Rc :: new ( Environment :: new_main_environment ( ) ) ;
92-
93- let load_file_fn = rust_core:: LoadFileFn :: new ( Rc :: clone ( & environment) ) ;
93+
94+ let load_file_fn = rust_core:: LoadFileFn :: new ( Rc :: clone ( & environment) ) ;
9495 let eval_fn = rust_core:: EvalFn :: new ( Rc :: clone ( & environment) ) ;
9596
9697 environment. insert ( Symbol :: intern ( "+" ) , add_fn. to_rc_value ( ) ) ;
@@ -105,22 +106,24 @@ impl Environment {
105106 environment. insert ( Symbol :: intern ( "+" ) , add_fn. to_rc_value ( ) ) ;
106107 environment. insert ( Symbol :: intern ( "let" ) , let_macro. to_rc_value ( ) ) ;
107108 environment. insert ( Symbol :: intern ( "str" ) , str_fn. to_rc_value ( ) ) ;
109+ environment. insert ( Symbol :: intern ( "map" ) , map_fn. to_rc_value ( ) ) ;
110+
108111 environment. insert ( Symbol :: intern ( "quote" ) , quote_macro. to_rc_value ( ) ) ;
109112 environment. insert ( Symbol :: intern ( "do-fn*" ) , do_fn. to_rc_value ( ) ) ;
110113 environment. insert ( Symbol :: intern ( "do" ) , do_macro. to_rc_value ( ) ) ;
111114 environment. insert ( Symbol :: intern ( "def" ) , def_macro. to_rc_value ( ) ) ;
112115 environment. insert ( Symbol :: intern ( "fn" ) , fn_macro. to_rc_value ( ) ) ;
113- environment. insert ( Symbol :: intern ( "if" ) , if_macro. to_rc_value ( ) ) ;
116+ environment. insert ( Symbol :: intern ( "if" ) , if_macro. to_rc_value ( ) ) ;
114117 environment. insert ( Symbol :: intern ( "defmacro" ) , defmacro_macro. to_rc_value ( ) ) ;
115118 environment. insert ( Symbol :: intern ( "eval" ) , eval_fn. to_rc_value ( ) ) ;
116119 environment. insert (
117120 Symbol :: intern ( "lexical-eval" ) ,
118121 lexical_eval_fn. to_rc_value ( ) ,
119122 ) ;
120- environment. insert ( Symbol :: intern ( "load-file" ) , load_file_fn. to_rc_value ( ) ) ;
123+ environment. insert ( Symbol :: intern ( "load-file" ) , load_file_fn. to_rc_value ( ) ) ;
121124 environment. insert ( Symbol :: intern ( "nth" ) , nth_fn. to_rc_value ( ) ) ;
122- environment. insert ( Symbol :: intern ( "assoc" ) , assoc_fn. to_rc_value ( ) ) ;
123- environment. insert ( Symbol :: intern ( "get" ) , get_fn. to_rc_value ( ) ) ;
125+ environment. insert ( Symbol :: intern ( "assoc" ) , assoc_fn. to_rc_value ( ) ) ;
126+ environment. insert ( Symbol :: intern ( "get" ) , get_fn. to_rc_value ( ) ) ;
124127 environment. insert ( Symbol :: intern ( "concat" ) , concat_fn. to_rc_value ( ) ) ;
125128 environment. insert (
126129 Symbol :: intern ( "print-string" ) ,
0 commit comments