Close Menu
Şevket Ayaksız

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Save 45% on Anker’s Prime 6-in-1 USB-C Charger

    Mayıs 8, 2025

    Tariffs Force 8BitDo to Pause U.S. Deliveries

    Mayıs 8, 2025

    PC Manager App Now Displays Microsoft 365 Advertisements

    Mayıs 8, 2025
    Facebook X (Twitter) Instagram
    • software
    • Gadgets
    Facebook X (Twitter) Instagram
    Şevket AyaksızŞevket Ayaksız
    Subscribe
    • Home
    • Technology

      Ryzen 8000 HX Series Brings Affordable Power to Gaming Laptops

      Nisan 10, 2025

      Today only: Asus OLED laptop with 16GB RAM drops to $550

      Nisan 6, 2025

      Panther Lake: Intel’s Upcoming Hybrid Hero for PCs

      Nisan 5, 2025

      A new Xbox gaming handheld? Asus’ teaser video sparks speculation

      Nisan 2, 2025

      Now available—Coolify’s ‘holographic’ PC fans bring a unique visual effect

      Nisan 2, 2025
    • Adobe
    • Microsoft
    • java
    • Oracle
    Şevket Ayaksız
    Anasayfa » Kotlin 1.4-M2 Brings Significant Improvements to Standard Library
    software

    Kotlin 1.4-M2 Brings Significant Improvements to Standard Library

    By mustafa efeAğustos 5, 2024Yorum yapılmamış2 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Kotlin 1.4-M2 Features API Enhancements and New Functions for Arrays and Collections

    JetBrains is advancing toward the general release of Kotlin 1.4, an upgrade to its open-source, multi-platform programming language used for JVM, Android, web, and native development. This upcoming release promises significant enhancements to the standard library, including updates to the API. The Kotlin 1.4-M2 milestone release has been detailed in a bulletin posted on May 12 and is now available in the Kotlin playground for developers to explore.

    The Kotlin 1.4-M2 release introduces various improvements to the standard library, including changes to existing APIs and new additions. For instance, some functions have been updated to accept null values, addressing previous limitations. An example of this is shown with the toBoolean() function, which now works with nullable strings

    Additionally, new constants such as SIZE_BITS and SIZE_BYTES have been introduced in the Double and Float types. These constants provide the number of bits and bytes used to represent an instance of these types in binary form, adding useful information for developers working with data representation and memory management.

     

     

    Kotlin 1.4-M2 also extends the common library, which supports code shared across different platforms such as Android, iOS, JVM, and JavaScript. This extension aims to add missing functionality and enhance compatibility across various environments. New functions for arrays, including shuffle() and onEach(), provide more flexibility for manipulating array elements. shuffle() randomizes array elements, while onEach() performs an action on each element and returns the array itself. The standard library now also includes functions for sorting subranges of arrays.

    The collections API has been expanded to better handle real-world scenarios. The new set()NotNull() function creates a set from non-null items among the provided arguments. Additionally, runningFold() and runningReduce() have been introduced as synonyms for scan() and scanReduce(), aligning with related functions for consistency.

    Improvements to property delegation include the introduction of the PropertyDelegateProvider interface and enhancements to ReadWriteProperty, which now inherits from ReadOnlyProperty. Properties can now delegate their getter and setter operations directly to another property, streamlining property management.

    The first milestone of Kotlin 1.4 was released on March 23 and featured a more powerful type inference algorithm and improved bytecode generation for Java 8+ targets. These updates are part of JetBrains’ ongoing effort to refine Kotlin and provide a more robust development experience.

    Post Views: 95
    java Programming Languages Software Development
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    mustafa efe
    • Website

    Related Posts

    PC Manager App Now Displays Microsoft 365 Advertisements

    Mayıs 8, 2025

    Microsoft Raises Xbox Series X Price by $100 Amid Global Adjustments

    Mayıs 8, 2025

    The Cot framework simplifies web development in Rust

    Nisan 29, 2025
    Add A Comment

    Comments are closed.

    Editors Picks
    8.5

    Apple Planning Big Mac Redesign and Half-Sized Old Mac

    Ocak 5, 2021

    Autonomous Driving Startup Attracts Chinese Investor

    Ocak 5, 2021

    Onboard Cameras Allow Disabled Quadcopters to Fly

    Ocak 5, 2021
    Top Reviews
    9.1

    Review: T-Mobile Winning 5G Race Around the World

    By sevketayaksiz
    8.9

    Samsung Galaxy S21 Ultra Review: the New King of Android Phones

    By sevketayaksiz
    8.9

    Xiaomi Mi 10: New Variant with Snapdragon 870 Review

    By sevketayaksiz
    Advertisement
    Demo
    Şevket Ayaksız
    Facebook X (Twitter) Instagram YouTube
    • Home
    • Adobe
    • microsoft
    • java
    • Oracle
    • Contact
    © 2025 Theme Designed by Şevket Ayaksız.

    Type above and press Enter to search. Press Esc to cancel.