RosettaCodeData/Task/Array-length/Futhark/array-length.futhark

2 lines
43 B
Plaintext

fun length(as: []int): int = (shape as)[0]