This file contains hidden or 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
hash = {} of String => Hash(Int32, Int32) # | Hash(String, Hash(Int32, Int32)) | |
hash["foo"] = {} of Int32 => Int32 | |
hash["foo"][1] = 4 | |
#hash["bar"]["baz"] = {} of Int32 => Int32 | |
#hash["bar"]["baz"][1] = 4 | |
puts hash |
This file contains hidden or 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
abstract struct Foo | |
end | |
struct Bar < Foo | |
end | |
struct Baz < Foo | |
end | |
hash = {} of Foo => Int32 |
This file contains hidden or 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
require "string_pool" | |
pool = StringPool.new | |
pool.get("foo") | |
(0..500).each do |i| | |
# add random stuff to grow the pool | |
random_str = (1..8).map{ ((rand(2)==1?65:97) + rand(25)).chr }.join | |
pool.get(random_str) |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xml:base="https://l761067-iflmap.hcisbp.eu2.hana.ondemand.com:443/gw/odata/SAP/ZCPI_IFLO_POST_DOCUMENT_MULTIQUEUE_REQUEST;v=1/"> | |
<id>https://l761067-iflmap.hcisbp.eu2.hana.ondemand.com:443/gw/odata/SAP/ZCPI_IFLO_POST_DOCUMENT_MULTIQUEUE_REQUEST;v=1/FICAX_POST_DOC_SET(submissionTimeStamp='2024-07-19T18%3A28%3A49.809291',currencyCode='USD')</id> | |
<title type="text">FICAX_POST_DOC_SET</title> | |
<updated>2024-07-19T18:28:51.65Z</updated> | |
<category term="ZIF_OD_FICA_POST_DOC_SRV.FICAX_POST_DOC" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/> | |
<link href="FICAX_POST_DOC_SET(submissionTimeStamp='2024-07-19T18%3A28%3A49.809291',currencyCode='USD')" rel="edit" title="FICAX_POST_DOC"/> | |
<link href="FICAX_POST_DOC_SET(submissionTimeStamp='2024-07-19T18%3A28%3A49.809291',curr |
OlderNewer