# \#array-manipulation-methods

**URL:** https://verificationacademy.com/forums/tag/array-manipulation-methods/7756.md

[Latest](https://verificationacademy.com/forums/latest.md) · [Categories](https://verificationacademy.com/forums/categories.md) · [Tags](https://verificationacademy.com/forums/tags.md)

---

## [What are the truncation/conversion rules in this expression?](https://verificationacademy.com/forums/t/what-are-the-truncation-conversion-rules-in-this-expression/40017)

<div class="topic-metadata">

**Author:** [@a\_stod](https://verificationacademy.com/forums/u/a_stod)\
**Replies:** 2\
**Last updated:** [February 1, 2022, 3:53pm UTC](https://verificationacademy.com/forums/t/what-are-the-truncation-conversion-rules-in-this-expression/40017 "2022-02-01T15:53:53Z")

</div>

Given the following code: logic \[3:0\] bitc \[64\] = '{default:4'hf}; logic \[8:0\] count; assign count = bitc.sum() with ($countones(item)); The value of count should be 64\*4=256 (or 9’h100), but I am seeing the count a…

---

## [Finding repeated items in a array using array manipulation methods](https://verificationacademy.com/forums/t/finding-repeated-items-in-a-array-using-array-manipulation-methods/39399)

<div class="topic-metadata">

**Author:** [@sasi\_8985](https://verificationacademy.com/forums/u/sasi_8985)\
**Replies:** 5\
**Last updated:** [August 4, 2021, 4:33pm UTC](https://verificationacademy.com/forums/t/finding-repeated-items-in-a-array-using-array-manipulation-methods/39399 "2021-08-04T16:33:39Z")

</div>

Hi all, Hope you all are doing good in these critical days. I am having a doubt on implementing a program which finds repeated items using array manipulation methods. I tried below program. module tb; int c\[$\] = '…

---

## [Performance benefit in using array locator method](https://verificationacademy.com/forums/t/performance-benefit-in-using-array-locator-method/38959)

<div class="topic-metadata">

**Author:** [@Omkar](https://verificationacademy.com/forums/u/Omkar)\
**Replies:** 1\
**Last updated:** [April 9, 2021, 10:18am UTC](https://verificationacademy.com/forums/t/performance-benefit-in-using-array-locator-method/38959 "2021-04-09T10:18:46Z")

</div>

Hi, I would like to know the performance benefit, if any, in using array locator method as compared to other explicit iterative methods. Which of the below two code snippets is better in terms of performance? In genera…
