Hello,, I am asking myself what is the best/efficient domain to return a list of key pairs.
I can not use List(Record), first I am not a big fan of hardcoded "domains" in FriCAS core, and second I do not know the keys in advance. I explain, I am adding regular expression support to custom strings (JuliaString) and when the regular expression captures substring they can be named. Take this regex: regex:= "(?<hour>\d+):(\d+)(am|pm)?" and "11:30 in the morning" to search in. Actually, I return a List(JuliaString), ==================================== (7) -> l:=jlRegexMatch(regex,s)@List(JSTR) (7) ["11", "30", ""] Type: List(JuliaString) ==================================== But I would like to also add the (key, value) pairs support: "hour" => "11", "minutes" => "30" "3" => "" the regular expression code is in Julia (PCRE2 is used from Julia documentation) but in FriCAS do you have any idea which domain I could use, AssociationList is not exposed for example? Note: that's just utility code for strings. Regards, __ G. Vanuxem -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/CAHnU2daPjLvwfww3oaazxjsFBW9_TsCOMnEJ1cDcmN7uUK8xdg%40mail.gmail.com.