marspumpkin

hashmaps

marspumpkin ที่อัปเดต:   
A simple hashmap implementation for pinescript.

It gets your string array and transforms it into a hashmap.
Before using it you need to initialize your array with the size you need for your specific case since the size is not dynamic.

To use it, first you need to import it the following way:
> import marspumpkin/hashmaps/1

Then, initialize your array with the size needed for your specific case:
> hashmap = array.new_string(10000)

After that you can call:
> hashmaps.put() and hashmaps.get()

Passing in the array(hashmap), key and value.

I hope this helps you in your pinescript journey.
เอกสารเผยแพร่:
v2 - supports PSONs as value
เอกสารเผยแพร่:
v3 added contains()
เอกสารเผยแพร่:
v4 added new put() functions and get_float() get_int() get_bool()
เอกสารเผยแพร่:
v5 added remove()
ไลบรารีไพน์

จิตวิญญาณที่แท้จริงของ TradingView ผู้เขียนได้ตีพิมพ์รหัส Pine นี้เป็นไลบรารีโอเพนซอร์ซเพื่อให้โปรแกรมเมอร์คนอื่น ๆ จากชุมชนของเราสามารถนำไปใช้ซ้ำได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ไลบรารีนี้เป็นการส่วนตัวหรือในสิ่งพิมพ์โอเพนซอร์สอื่น ๆ แต่นำรหัสนี้มาใช้ซ้ำในสิ่งพิมพ์จะถูกควบคุมโดย กฎระเบียบการใช้งาน

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการใช้ไลบรารีนี้หรือไม่?

คัดลอกข้อความไปยังคลิปบอร์ดแล้ววางลงในสคริปต์ของคุณ