JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in

joy/group-by

joy


    function
    /usr/local/lib/janet/joy/helper.janet on line 290, column 1

    (group-by f ind)

    Groups an indexed datastructure according to function f

    Example:

    (group-by |($ :tbl) [{:tbl "post" :col "id"} {:tbl "post" :col 
    "created_at"}])

    =>

    @{"post" @[@{:tbl "post" :col "id"} @{:tbl "post" :col 
    "created_at"}]}


0 examplesSign in to add an example
Loading...