/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/fundamentals/runtime-libraries/snippets/System/Console/Overview/fsharp/unicode1.fs
23 строки
709 B
Genevieve Warren
Add remarks for core types (#38970)
05 янв 2024, 22:14
Не верифицирован
05 янв 2024, 22:14
71d1377
Код
Авторство
О чём код?
module unicode1 // <Snippet1> open System // Create a char List for the modern Cyrillic alphabet, // from U+0410 to U+044F. let chars = [ for codePoint in 0x0410 .. 0x044F do Convert.ToChar codePoint ] printfn "Current code page: %i\n" Console.OutputEncoding.CodePage // Display the characters. for ch in chars do printf "%c " ch if Console.CursorLeft >= 70 then Console.WriteLine() // The example displays the following output: // Current code page: 437 // // ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // </Snippet1>