jtothebell / fake-08

A Pico-8 player/emulator for console homebrew
Other
615 stars 50 forks source link

Count function doesn't work #203

Closed Godmil closed 1 year ago

Godmil commented 1 year ago

The pico8 function count(table,value) which is supposed to return the number of values found in the table instead returns the size of the table. This code:

count({"one","two","three"}, "ten")
count({"one","two","three"}, "two")

on pico8 returns 0,1 but in fake08 it returns 3,3

Tested on OnionOS v4.2.0 beta on Miyoo Mini+

jtothebell commented 1 year ago

This is fixed via PR #204 . Thank you again!