This file contains 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
function string.ends_with(str, ending) | |
return ending == "" or str:sub(-#ending) == ending | |
end | |
local index = 1 | |
local images = {} | |
local canvas | |
local function add(path, newname) | |
table.insert(images, { love.graphics.newImage(path), newname }) |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Runtime.CompilerServices; | |
public class LinearVsDictionaryTest | |
{ | |
public static void Test() | |
{ | |
int[] capacities = {1, 2, 4, 8, 10, 100, 1000, 10000, 100000}; |
NewerOlder