Avatar
J3RN :emacs: :haskell:
eebd14d82c7521a8a88dc84281fb4f1441ac71d0241f4e0dfa3f5058a1a076b0
Trying to make programming more enjoyable.

Does anyone have a #notes app on #Android that they like? I've been using Google Keep, but it's too limited; I want to be able to have lists that are part checklist and part not.

nostr:nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqxtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzs9d84s8 Interestingly, the language server gave me a specific warning for this

nostr:nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqxtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzs9d84s8 Aye, that works, it just feels like there'd be a built-in for this.

#Haskell question: Is there a function for "reapply this function to a starting value N times"? e.g. `doTimes (*2) 3 1` would return `8` ((*2) $ (*2) $ (*2) $ 1). I know I could chain take and iterate and then do a Data.List.last, but that has crumby performance for very large values of N.

Hey #Haskell folks, I have a simple problem that I just can't sort out.

I want a point-free function that does a subtraction, then returns the absolute value of that.

I wrote (abs . (-)) but that tries to apply abs to a partially applied (-). Anyways I'm stuck.

Hey #Haskell friends, I occasionally write something like this:

import Data.Map (Map)

import qualified Data.Map as Map

Essentially, I want to use "Map" unqualified as a type (e.g. Map Text Text) (as opposed to the qualified Map.Map Text Text), but I'm fine with invoking the Map module's functions qualified (e.g. Map.empty). Is there a terser way I can write this (i.e. not two imports)?

I use Emacs because I've been too lazy to write my own operating system.