From b45060c468bb42debfe1026fbb45b238d96d3963 Mon Sep 17 00:00:00 2001 From: Alexander Pantyukhin Date: Mon, 18 Oct 2021 00:39:50 +0400 Subject: [PATCH] Update Builtins.fs --- src/stdlib/Builtins.fs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/stdlib/Builtins.fs b/src/stdlib/Builtins.fs index 056b495..8cdd8d6 100644 --- a/src/stdlib/Builtins.fs +++ b/src/stdlib/Builtins.fs @@ -107,6 +107,12 @@ type IExports = abstract map : ('T1 * 'T2 * 'T3 -> 'T4) * IEnumerable<'T1> * IEnumerable<'T2> * IEnumerable<'T3> -> IEnumerable<'T4> /// Return the Unicode code point for a one-character string. abstract ord : char -> int + // Object to string + abstract str : obj -> string + // Object to int + abstract int : obj -> int + // Object to float + abstract float : obj -> float abstract print : obj: obj -> unit abstract read : file: _OpenFile -> TextIOWrapper abstract read : file: _OpenFile * mode: OpenTextMode -> TextIOWrapper