how can I simplify this: ``` val map = ConcurrentH...
# codereview
e
how can I simplify this:
Copy code
val map = ConcurrentHashMap<StandardSemaphores, VkSemaphoreArray>()
        StandardSemaphores.values().forEach {
            map[it] = swapchain!!.images!!.map {
                device.vulkanDevice.createSemaphore(semaphoreCreateInfo)
            }.toLongArray()
        }
        return map