]> CRI, Mines Paris - PSL - Faustine.git/blobdiff - interpretor/value.ml
Csv IO class implemented.
[Faustine.git] / interpretor / value.ml
index a13739e918bc49a44717a41b447c79ab4368afdf..3c97aa04fa8acc86cf8d070201bd0c20a26ebb1a 100644 (file)
@@ -22,6 +22,8 @@ class value : basic -> value_type =
       method to_int = convert basic_to_int self#get      
       method to_float_array = convert basic_to_float_array self#get
       method to_string = convert basic_to_string self#get
+      method of_float_array : float array -> value_type =
+       fun data -> new value (basic_of_float_array data)
 
       method private prim1 : (basic -> basic) -> value = 
        fun oper ->