H
HN user
efdb
J
Did you have a look at https://rqlite.io/ ?
Not so unfortunate according to Socrates: 'the hardest task needs the lightest hand..' ;-)
see https://github.com/nalgeon/sqlean for 'All the missing SQLite functions'
self documenting code ;-)
def descending(lst):
if len(lst) < 2:
return False
first, second = lst[:2]
if first > second:
return False
if first < second:
return True
descending(lst[1:])
def monotonic(lst):
if len(lst) < 2:
return lst
result = []
status = 0
temp = [lst[0]]
for v in lst[1:]:
if v >= temp[-1] and status >= 0:
if v > temp[-1]:
status = 1
temp.append(v)
continue
if v <= temp[-1] and status <= 0:
if v < temp[-1]:
status = -1
temp.append (v)
continue
result.append(temp)
temp = [v]
status = 0
result.append(temp)
return [list(reversed(x)) if descending(x) else x for x in result]i really like the syntax, very intuitive use of ->
In addition to this question I would like to know if you can in general say/proof that for every sequence which has some relation between the successive numbers there is a rational number whose decimal expansion is the same as the sequence.
Indeed great and very simple interop with C libs. I have looked and played with CL, Scheme, pico lisp, Clojure and Janet but keep coming back to Newlisp, because 'it just works' (for me), documentation is very good and has a lot of inbuild functions. Regarding the C interop I made some bindings for duckdb, termbox and libui at https://github.com/luxint.
Zuckerberg: "We're not going to change our policies or approach on anything because of a threat to a small percent of our revenue."
Facebook Mission: "Give people the power to build community and bring the world closer together."
Please update the mission statement
how about this?: https://www.carver.earth/
electric 3 wheel car/scooter for 1-2 persons
LAMBDA: The Ultimate GOTO http://dspace.mit.edu/bitstream/handle/1721.1/5753/AIM-443.p...