SkillAgentSearch skills...

Permuter

Kotlin implementation for creating permutations (possible combinations) of a 2D array / 2D list

Install / Use

/learn @PhilJay/Permuter
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Permuter

Kotlin implementation for creating permutations (possible combinations) of a 2D array / 2D list

Usage

    val a1 = arrayListOf(1, 2, 3)
    val a2 = arrayListOf(4)
    val a3 = arrayListOf(7, 8)
    val input = arrayListOf(a1, a2, a3)

    val permutations = Permuter.permute(input)
    print(permutations)
    // 1 4 7
    // 1 4 8
    // 2 4 7
    // 2 4 8
    // 3 4 7
    // 3 4 8

Related Skills

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated3y ago
Forks0

Languages

Kotlin

Security Score

70/100

Audited on May 17, 2022

No findings