Excited to bring new release of DreamLisp v1.1. This version adds new data type set
and core functions updated to work with set
types. Since it is unordered collection not all core functions work with it and some works by converting the set
to a list
and operating on it. Some hash-map
functions also work similarly. Added few core functions rand
, shuffle
and remove
. shuffle
uses Fisher-Yates shuffle with uniform random distribution. This algorithm is amazing.
Once I started using the language myself I found these missing and added them. Writing a set
in dlisp itself is feasible but won't be performant and less elegant as having it as a native type. Had a blast implementing these.