We couldn’t find this entry. Showing approximate results. Check your spelling or suggest adding this term to the dictionary.
إنشاء دالة
We can also create a function that can take any object, allowing for polymorphism.
يمكننا أيضًا إنشاء دالة تقبل أيّ شيء، وهذا سيسمح باستخدام التعددية الشكلية.
For example, one could create a function that creates an infinite list (often called a stream) of Fibonacci numbers.
كمثال، يُمكن إنشاء دالَّة تُنشِئ قائمة لانهائيَّة (تُدعى غالبًا «جريان») من أعداد فيبوناتشي.
When we create a function, it must be given a name.
عند إنشاء عنصر جديد، يجب أن تمنحه اسماً.
That seemed to work, so let's create a function
يبدو ذلك مفيدًا وقابل لإعادة الاستخدام، لذلك دعونا نضعه في وظيفة
To do this, we can create a function that does the following
للقيام بذلك، يمكننا إنشاء وظيفة تقوم بما يلي
You can just create a function and remove items in series
يمكنك فقط إنشاء وظيفة وإزالة العناصر في سلسلة
If you've ever wanted to create a function that doesn't accept new parameters, you can do so now.
إذا كنت تريد إنشاء وظيفة لا تقبل معلمات جديدة، فيمكنك القيام بذلك الآن.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.