---
title: "Ruud van der Ham (@ruudvanderham) | Hashnode"
description: "Ruud van der Ham (@ruudvanderham) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@ruudvanderham"
---

@ruudvanderham

# Ruud van der Ham

@ruudvanderham · Joined December 2020

## Comments

[I was wondering whether there's an on-screen keyboard available when there's no keyboard connected (in tablet mode). If so, does that work adequately?](https://hashnode.com/posts/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/5f98cd3a6ea7602886a173a8/comment/60544387406fc61597431745)

Comment · Article · Mar 19, 2021 · [Setting up Linux on a new Lenovo Chromebook Duet (bonus arm64 complications!)](https://hashnode.com/posts/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/5f98cd3a6ea7602886a173a8)

[Hynek Černoch Maybe it would be better to use this quite different function as an inline flatten, very much like list.sort() or list.remove(). The return value is then always None and the list will be replaced by the flattened version. That can be implemented like: def flatten\_inplace(lst): build = \[\] while lst: e = lst.pop() if isinstance(e, list): lst.extend(e) else: build.append(e) lst.extend(build\[::-1\])](https://hashnode.com/posts/python-flatten-list/5fd49556b6e5766805757aa7/comment/5fdbceceb78ac62dff80a5c9#reply-5fdcdfc91485f22e24b33d31)

Reply · Article · Dec 18, 2020 · [7 Different Ways to Flatten a List of Lists in Python](https://hashnode.com/posts/python-flatten-list/5fd49556b6e5766805757aa7)

[Hynek Černoch Good point. It is true that the original list will be destroyed. But if that doen't matter a deep copy is not required.](https://hashnode.com/posts/python-flatten-list/5fd49556b6e5766805757aa7/comment/5fdbceceb78ac62dff80a5c9#reply-5fdc4a7bb78ac62dff80ac65)

Reply · Article · Dec 18, 2020 · [7 Different Ways to Flatten a List of Lists in Python](https://hashnode.com/posts/python-flatten-list/5fd49556b6e5766805757aa7)

[Here's a different, non recursive, solution for deep flattening: def flatten(bad): good = \[\] while bad: e = bad.pop() if isinstance(e, list): bad.extend(e) else: good.append(e) return good\[::-1\] Very likely quite fast as well.](https://hashnode.com/posts/python-flatten-list/5fd49556b6e5766805757aa7/comment/5fdbceceb78ac62dff80a5c9)

Comment · Article · Dec 17, 2020 · [7 Different Ways to Flatten a List of Lists in Python](https://hashnode.com/posts/python-flatten-list/5fd49556b6e5766805757aa7)
