Submitted by mm_ in programming
hollyhoppet wrote
Reply to comment by voxpoplar in i like this programming suggestion by mm_
how does # mean length of something?
Personally if I were to choose something for comments i'd say -- is pretty good but then again i have a huge soft spot for ada
voxpoplar wrote
because it's shorthand for number and it would represent the number of items in a list/array/map/whatever
hollyhoppet wrote
sorry # only means sharp (music notation) and hashtag now it's a Fact
Moonside wrote
- It's also called the number sign
- Size of a mathematical set S or a group G or whatever is notated as #S or #G.
- This gets abstracted out into collections of all sorts and the length of a list is equal to the elements it contains.
Viewing a single comment thread. View all comments