unlab (golfing language)

The unlab golfing language. Github: github.com/TheSecondComing...
Feb 28, 2022 16:13
push complete
Feb 28, 2022 16:13
pushing...
Feb 28, 2022 16:12
@mathcat implemented
Feb 28, 2022 15:47
So it can be named typecheck()
Feb 28, 2022 15:47
How about a keyword-only argument for ordered and unordered type checking?
Feb 28, 2022 15:46
@mathcat how about UnorderedTypecheck
Feb 28, 2022 15:39
Also, I think IsType should have order.
Feb 28, 2022 15:33
@BgilMidol feedback?
Feb 28, 2022 15:29
If you do that, you can't import it with from <name> import *
Feb 28, 2022 15:28
(means it's private)
Feb 28, 2022 15:28
?
Feb 28, 2022 15:27
def _interleave(a1, a2):
    """Interleave a1 and a2 (two iterables)"""

    a2 = itertools.cycle(a2)
    convert_func = "".join if isinstance(a1, str) else type(a1)
    return convert_func(itertools.chain.from_iterable(zip(a1, a2)))
Feb 28, 2022 15:27
how about:
Feb 28, 2022 15:25
(copied from stackoverflow)
Feb 28, 2022 15:22
@mathcat not working
Feb 28, 2022 15:22
*P1A2E8L7
Feb 28, 2022 15:21
@mathcat ?
Feb 28, 2022 15:07
requirement already satisfied
Feb 28, 2022 15:06
im in a project
Feb 28, 2022 15:06
no
Feb 28, 2022 15:06
ModuleNotFoundError: No module named 'more_itertools'
Feb 28, 2022 15:06
well I can't import it
Feb 28, 2022 15:05
no, "requirement already satisfied"
Feb 28, 2022 15:05
Still doesn't work.
Feb 28, 2022 15:04
I typed pip install more-itertools
Feb 28, 2022 15:04
@PyGamer0 oh
Feb 28, 2022 15:04
@mathcat oh yeah
Feb 28, 2022 15:03
I guess I'll make my own
Feb 28, 2022 15:03
Can't seem to download more_itertools
Feb 28, 2022 15:03
ĕ is for interleave
Feb 28, 2022 15:03
no
Feb 28, 2022 15:02
How about LJ for flatten
Feb 28, 2022 15:02
æ ƙ ū Ȅ ĕ Ľ ƴ Ĩ Ĺ LJ
Feb 28, 2022 14:59
got È
Feb 28, 2022 14:59
got ǯ
Feb 28, 2022 14:59
proceeds to generate a random unicode char
Feb 28, 2022 14:53
@mathcat should I make a interleave function in functions.py? or somewhere else?
Feb 28, 2022 14:53
ok
Feb 28, 2022 14:51
I think so.
Feb 28, 2022 14:51
maybe a new file called function_helpers?
Feb 28, 2022 14:51
Should I make a interleave function in functions.py?
Feb 28, 2022 14:49
Ok
Feb 28, 2022 14:48
@mathcat how should we implement interleave?
Feb 27, 2022 19:54
@mathcat yes
Feb 27, 2022 19:54
back
Feb 27, 2022 18:57
brb
Feb 27, 2022 18:56
@mathcat good
Feb 27, 2022 16:44
yeah
Feb 27, 2022 16:42
Yes
 

 The Nineteenth Byte

The Nineteenth Byte: General discussion for codegolf.stackexc...
Feb 28, 2022 14:21
simple arithmetic