Created
December 2, 2022 19:41
-
-
Save TsRebornz/0fdf7b53667276141da87b34ea050794 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let array = [1,2,3,4,5] | |
let arrayFirstItemKeyPath = \[Int][0] | |
let firstArrayItem = array[keyPath: arrayFirstItemKeyPath] // -> 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment