mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-12-22 20:34:58 +01:00
Removed Core from MO_class.ml
This commit is contained in:
parent
6011ed7a2e
commit
83d3cafbb2
@ -1,5 +1,6 @@
|
|||||||
open Core
|
|
||||||
open Qptypes
|
open Qptypes
|
||||||
|
open Sexplib.Std
|
||||||
|
|
||||||
|
|
||||||
type t =
|
type t =
|
||||||
| Core of MO_number.t list
|
| Core of MO_number.t list
|
||||||
@ -12,8 +13,8 @@ type t =
|
|||||||
|
|
||||||
let to_string x =
|
let to_string x =
|
||||||
let print_list l =
|
let print_list l =
|
||||||
let s = List.map ~f:(fun x-> MO_number.to_int x |> string_of_int )l
|
let s = List.map (fun x-> MO_number.to_int x |> string_of_int ) l
|
||||||
|> (String.concat ~sep:", ")
|
|> (String.concat ", ")
|
||||||
in
|
in
|
||||||
"("^s^")"
|
"("^s^")"
|
||||||
in
|
in
|
||||||
@ -42,7 +43,7 @@ let of_string s =
|
|||||||
|
|
||||||
|
|
||||||
let _mo_number_list_of_range range =
|
let _mo_number_list_of_range range =
|
||||||
Range.of_string range |> List.map ~f:MO_number.of_int
|
Range.of_string range |> List.map MO_number.of_int
|
||||||
|
|
||||||
|
|
||||||
let create_core range = Core (_mo_number_list_of_range range)
|
let create_core range = Core (_mo_number_list_of_range range)
|
||||||
|
Loading…
Reference in New Issue
Block a user